Questions tagged [shoes]

Shoes is a cross-platform toolkit for writing graphical apps easily and artfully using Ruby. Unlike most other GUI toolkits, Shoes is designed to be easy and straightforward without losing power.

Shoes is a cross-platform toolkit for writing graphical apps easily and artfully using Ruby. Shoes is designed to be easy and straightforward, while still powerful. It was originally developed by why the lucky stiff, and others are carrying on with it after his disappearance.

Shoes runs on Microsoft Windows, Mac OS X and Linux (GTK+), using the underlying technologies of Cairo and Pango. It is written mostly in C, and is distributed or compiled as an executable with Ruby 1.9.1 incorporated (so you don't need Ruby). Its base functionality can be expanded by using Ruby gems. Apps can be compiled and distributed as a binary.

Here's an example Shoes app:

Shoes.app :width => 300, :height => 200 do
  button("Click me!") { alert("Good job.") }
end

Homepage: http://www.shoesrb.com/

Green Shoes is one of the forked projects. It is written in pure Ruby.

Here's an example green Shoes app:

require 'green_shoes'
Shoes.app{
  button("Click me!"){
    alert("Good job.")
  }
}

Homepage: http://vgoff.posterous.com/green-shoes

319 questions
3
votes
1 answer

Ruby (Shoes) List box crash when populating from excel

I've got a problem when using Shoes. I'm basically trying to open an excel document and pass the names of the worksheets to a list_box. The following method is called on a button press after selecting a file. (This all works and the file opens) exc…
DurkD
  • 169
  • 2
  • 8
3
votes
1 answer

ruby shoes ssh connection

I am trying my hands on shoes but got stuck. I am trying to connect to a remote computer using ssh and issue a command, got it working in cli but it is a no go for me to get it working on shoes. This might be a simple thing but new as I am I can't…
Fox
  • 31
  • 1
3
votes
1 answer

Full-screen Shoes application?

I looked around the documentation but found nothing - is there a way to make a Shoes app display full screen? Possibly something like.. Shoes.app :fullscreen => true do para "test" end Looking in the source-code, the following lines mentioning…
dbr
  • 165,801
  • 69
  • 278
  • 343
3
votes
2 answers

Method for building lightweight, cross-platform, text editor

I'm planning to build a simple, lightweight text editor that combines a great look with keyboard focused input. I want to have a lot of control over things like antialiasing and all the graphics in general, but I don't care about having a whole…
3
votes
2 answers

Click event in Shoes

On clicking a slot , I change the contents of the slot to provide user feed back, then call some code which takes several seconds to run. However the changes to the slot do not render until after the 'slow' process has completed. Is there any way I…
Tony Sutton
3
votes
1 answer

How do I enable text selection, copying, and pasting in a Shoes app?

Is there any way to allow text selection, copying and pasting in a Shoes app? I'm making a little utility, and it would be great if it could support this functionality. I know shoes uses Pango/Cairo for text rendering, so I imagine there's a way…
3
votes
0 answers

Ruby Shoes center window on screen

Is there any way to center an app on screen with Shoes 3.7? I can't find anything useful in any docs. When i start my app, it will appear on the bottom right of the screen. With Shoes 3.7 i can't even drag the window around, with Shoes 3.8 beta…
lucaortis
  • 430
  • 2
  • 11
3
votes
2 answers

no such file to load -- mechanize

Code: Shoes.setup do gem 'mechanize' end require 'rubygems' require 'mechanize' Running Shoes on it says: no such file to load -- mechanize
Zach Inglis
  • 1,242
  • 1
  • 14
  • 28
3
votes
2 answers

How do I get content from a website using Ruby / Rails?

I want to copy some specific content from a website using ruby/rails. The content I need is inside a marquee html tag, divided by divs. How can I get access to this content using ruby? To be more precise - I want to use some kind of ruby gui…
Ariel
  • 2,638
  • 4
  • 23
  • 27
3
votes
1 answer

When does the finish event get called in shoes?

Using Shoes, I would like to have a block executed upon window destruction. I thought I could use the finish event, but in the following piece of code, "Starting" is displayed, but "Finished" is never shown. Shoes.app(:title => "Test") do flow…
Zachary Garrett
  • 2,911
  • 15
  • 23
3
votes
3 answers

Does Shoes have a list view control?

I was taking a look at Shoes which seems like a very nice tool for quick GUI applications. The common elements/controls, however, don't seem to include the equivalent of a list/report view (e.g., ListView in Windows, NSTableView in OS X). Did I…
Jim
  • 4,691
  • 1
  • 25
  • 23
3
votes
1 answer

How do I pass/get command line parameters?

I am trying to use Shoes and I need to pass it command-line parameters (basically, my Shoes app will be called from another pre-existing app and this would allow me to pre-fill some parts of shoes). Should I then call it using bin/shoes wrapper? It…
user45148
  • 81
  • 1
  • 4
3
votes
1 answer

Using Shoes' download() to do basic HTTP authentication

I'm trying to use Shoes' download() method to pass a username and password in the HTTP header to authenticate the HTTP request (talking to a Rails app). I'm a bit of a newb when it comes to this stuff. I havn't quite understood whether I should be…
Etienne
  • 167
  • 1
  • 1
  • 6
3
votes
1 answer

Background image inside a stack in Ruby Shoes

I've been trying to set a background image to the stack but I can't get it to work, am I doing something wrong? Here's my code Shoes.app(:width => 550, :height => 450) do #Main container so I don't have to deal with scroll stack(:width =>…
Polariced
  • 35
  • 1
  • 6
3
votes
2 answers

How to use classes in Shoes?

I'm a somewhat beginner programmer who has a background in using Processing. I'm currently trying to make an app with Shoes, but I'm confused over how objects and classes work. I understand that the following would run in Ruby: class Post def…
1 2
3
21 22