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. How to include windows dependencies

I am experimenting with ruby and found a gui toolkit called Shoes. I am using Windows 8 and I would like to create a button in Shoes and have it play an audio file when clicked. The non-shoes ruby code I am using is the following. Keep in mind that…
William
  • 4,422
  • 17
  • 55
  • 108
3
votes
1 answer

Is there a way to BDD Ruby Shoes?

I'm looking for some solutions to BDD a new Shoes app. Any suggestions
zzeroo
  • 5,466
  • 4
  • 33
  • 49
3
votes
1 answer

Centring a flow in Shoes

Can I center the contents of a flow in Shoes? I know that a paragraph can be centred like: para 'Centred paragrpah', :align=>'center' However, this does not work with flows: flow(:align=>'center') do … end No errors are brought up, but the…
Jeffrey Aylesworth
  • 8,242
  • 9
  • 40
  • 57
3
votes
1 answer

Handling tables in ruby shoes framework

Could any one please tell me a nice tutorial regarding how to create edit and delete table in ruby shoes framework??
Abhiram
  • 1,459
  • 14
  • 23
3
votes
3 answers

How can I change the button text in Shoes?

Once a button is created in Shoes, is it possible to change the text? I've tried modifying the :text key in the button style--@button.style.inspect confirms the text is changed--but the button still shows the original text.
mikelygee
  • 61
  • 2
3
votes
1 answer

How can I create a hidden button in Shoes?

In Shoes, I'd like to create a button that is initially hidden. I've tried passing :hidden => true as part of the button style, as well as calling @button.hide() after creating it, but it remains obstinately visible. I've been able to work around…
mikelygee
  • 61
  • 2
3
votes
2 answers

Ruby Shoes: counting the amount of times a value occurs in an Array

I'm making a Yahtzee game in Ruby using Shoes when I click Button "Two" the code is suppose to count the amount of times the value 2 occurs in an array. For every instance of the value 2 that appears, the score is incremented by 2. This code works…
2
votes
1 answer

Shoes and heavy operation in separate thread

Is there a way to run a heavy operation in shoes in a different thread so that the GUI is not freezing until the operation is finished? (smth. similar to download but more generic, like SwingWorker.class in Swing). I have tried the…
JDin
2
votes
2 answers

Plotting individual pixel in shoes:Ruby

i am working with Shoes in Ruby. I could not find a method to plot individual pixels in the shoes window.... Can anyone help me?? :)
aayush shrestha
  • 1,858
  • 2
  • 17
  • 33
2
votes
1 answer

Cairo and Shoes in Ruby

How do I use Cairo ta draw on a shoes window? I am trying to start a school project for Computer Graphics. Can anybody post a simple code that draws a circle on a shoes window? I'd be very grateful. I have been searching for quite a while now...…
aayush shrestha
  • 1,858
  • 2
  • 17
  • 33
2
votes
0 answers

Integrating Shoes with latest version of Aptana

I found a previous question about integrating Shoes with Aptana for writing GUIs with ruby. I'm totally stoked, man. I've been learning the language for a while, and am finally comfortable writing code in it. Now if I could just get the darn toolkit…
2
votes
1 answer

How can I get vertical alignment in flow slot in Shoes?

The default vertical alignment in a flow slot is apparently to top-align the elements. Here's a sample: Shoes.app (:title => "Vertical Alignment", :width => 300, :height => 150) do background "#DFA" flow :margin => 30 do title "BIG" …
Ken Paul
  • 5,685
  • 2
  • 30
  • 33
2
votes
1 answer

Shoes problems: clipboard and scroll bar

The code below has (at least) two problems: the Copy button doesn't update the clipboard, and the edit_box doesn't show a vertical scroll bar when it should. Shoes.app (:title => "Test", :width => 1000, :height => 600) do background "#DFA" stack…
Ken Paul
  • 5,685
  • 2
  • 30
  • 33
2
votes
2 answers

Use Watir in Shoes (ruby)

I'm trying to do an application in ruby. I want to collect information from the user using some UI interface. Then use this info in my script to fill some form on a web page. I use Shoes as UI I use Watir as Browser "manager" Here a simple…
Frank Boucher
  • 1,834
  • 20
  • 25
2
votes
1 answer

Integrate Shoes into Aptana Studio RadRails

How can I run my Carpet applications directly from Aptana Studio with RadRails? Setting the shoes.exe as VM/Interpreter won't work.
Patrick Glandien
  • 7,791
  • 5
  • 41
  • 47