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
35
votes
2 answers

Including Shoes in Shoes package

I've been having a problem with including Shoes in a Shoes app for Windows. The packager tool works perfectly when I don't ask to include Shoes in the app: I get an .exe that, if launched on a Shoes-less computer, downloads Shoes and then runs as…
Logelz
  • 359
  • 2
  • 4
33
votes
2 answers

Where relationship column equals?

I am trying to grab all records where Player's relationship called stats() has a column value of something. I would usually do ::where('column_name' 'column_value') for the players table, but how can I get ::where the relationship table's column…
VoiD HD
  • 699
  • 2
  • 8
  • 18
27
votes
2 answers

How to package ruby shoes apps on OSX 10.7

I have been making an app using Ruby Shoes. I am happy with how it turned out and would like to share it with some friends. However, the GUI packager doesn't work in OSX and the Windows packager only seems to make a .shy file. I've been reading…
dharris001
  • 409
  • 1
  • 6
  • 14
14
votes
2 answers

Using Ruby libraries and gems with a Shoes app

I am writing a little Shoes app that requires a library I wrote with my regular Ruby installation. My library uses the 'net-ssh' gem and a bunch of other Ruby libraries. When I run my library directly with regular ruby (it has its own command-line…
Dema
  • 6,867
  • 11
  • 40
  • 48
11
votes
5 answers

Programming a simple IRC (Internet-Relay-Chat) Client

I started using IRC at a young age, and I have always been fascinated with it. As a language exercise, I was thinking about programming a simple IRC client in Ruby with Shoes as a graphical front-end. My question to you, kind-sirs, what do I need…
CodingWithoutComments
  • 35,598
  • 21
  • 73
  • 86
8
votes
3 answers

Is shoes is a serious GUI toolkit for ruby?

Does someone create real desktop GUI application with shoes or is it just used for learning purposes? Can shoes be compared with qtruby or gtk for ruby?
Sergey
  • 11,548
  • 24
  • 76
  • 113
8
votes
5 answers

What is best way to debug Shoes applications?

Shoes has some built in dump commands (Shoes.debug), but are there other tools that can debug the code without injecting debug messages throughout? Something like gdb would be great.
user7936
  • 13
  • 1
  • 4
8
votes
3 answers

Creating Ruby applications for Windows

I want to develop a Windows application. Honestly I care little about cross-platforms for now (but still would be good) I want to use Ruby, since it has quite a simple syntax and is so.. well, simple and easy to learn. My application is like a "game…
Saturn
  • 17,888
  • 49
  • 145
  • 271
8
votes
4 answers

Ruby GUI (non-complex layouts)

I've done quite a bit of research on Ruby GUI design, and it appears to be the one area where Ruby tends to be behind the curve. I've explored the options of MonkeyBars, wxRuby, fxRuby, Shoes, etc. and was just wanted to get some input from the…
Ruby Novice
  • 101
  • 5
6
votes
2 answers

Pressing the Enter key instead of Clicking button with Shoes (Ruby)

As the title suggests, I'm just looking for a way of pressing a button in Shoes without clicking it. I've searched the forum, but unfortunately can't find anything. Thanks
Josh
  • 175
  • 10
6
votes
1 answer

How do I reload a running Shoes app after making source code changes?

I'd like to start tinkering around with Shoes. There is one thing I can't figure out. How do I reload a running Shoes application after saving changes to the source code? I've already found the hotkeys for opening the Help, Console, and a new app.…
Chad Braun-Duin
  • 2,188
  • 2
  • 19
  • 26
5
votes
1 answer

Abort Rubys Shoes animation

I'm starting to code GUIs with Shoes. I tried the progress bar from the examples, but I found no way to exit the animation, break did not work... animate do |frames| unless frames > 100 @p.fraction = (frames % 100) / 100.0 else break …
user995928
5
votes
3 answers

Ruby Shoes - Scrollbars in Subpane window

I can't seem to get a scrollbar to work in an inner stack/flow. Does anyone know how to?
user35852
  • 51
  • 2
5
votes
1 answer

Facebook Desktop Application

So I'm trying to program a simple desktop application to login into someone's facebook. Right now that's my only objective, just log into facebook. I'm coding in Ruby and am using shoes GUI toolkit. Here's the code I have so far: Shoes.app do …
Richard
  • 5,840
  • 36
  • 123
  • 208
5
votes
1 answer

How to implement a blur event for Ruby Shoes

I'm experimenting with Ruby Shoes. I want controls that become editable as you give them focus, and become text again when they loose it. So far I have the following... class NameBox < Shoes::Widget def initialize(model, opts = {}) @model =…
Nigel Thorne
  • 21,158
  • 3
  • 35
  • 51
1
2 3
21 22