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
0
votes
1 answer

Making UI communicate with logic

I have begun playing around with Shoes.rb and I have an hard time making the UI working with some logics. For instance I'd like to send a message to an object when a button is clicked so I have the following code: Shoes.app do button "Run"…
Sig
  • 5,476
  • 10
  • 49
  • 89
0
votes
1 answer

Ruby interface Shoes and auto testing tool Watir

I installed and used Watir to do auto testing for my web pages successfully. After this, I tried to create a Shoes interface for my testing code. I want to click on a button and then run my Watir testing code. My testing code works if I run it in…
Michael
  • 11
  • 1
  • 6
0
votes
2 answers

Using a simple GUI to run a Cucumber Feature File

I am utilizing the "shoes" tool to create a window with a button in the middle. I would like the user to be able click the button and then the program runs a Cucumber feature file, but I don't know how to run a feature file from within a class or…
Trev
  • 13
  • 4
0
votes
0 answers

How to implement twitter streaming with green_shoes?

I'm charmed by green_shoes and I want to create twitter client with it. I achieved to log in twitter and to get home_timeline. I try to implement streaming funciton, as following. require 'green_shoes' require 'twitter' CONSUMER_KEY =…
huyu
  • 324
  • 3
  • 4
0
votes
0 answers

Ruby Shoes "file.rb:18: syntax error, unexpected '\n', expecting tASSOC"

I have searched for a solution but didn't understand the answers well enough to apply them to my application. Here's the code: require "soundcloud" require "open-url" require 'taglib' client = SoundCloud.new({ :client_id => 'MyClientID', …
0
votes
3 answers

Changing background of a Stack in Shoes

I'm creating an application for fun to learn ruby and shoes, but it seems that I cannot accomplish what I'm trying to do... I have a stack with some text inside and, under certain circumstances, I want to change the background of that stack, but for…
DocKuro
  • 445
  • 4
  • 13
0
votes
1 answer

Shoes hangs on Net::FTP put

So I wrote the following piece of code: Shoes.app(:title=> "Humax Uploader", :width=>400, :height=>400) { background rgb(240, 250, 208) stack(margin:10) { title "Humax Uploader" server = '[ip]' user = '[user]' …
0
votes
1 answer

Ruby Shoes calculator functions don't run (array related error?)

I tried to code a simple calculator with GUI in Ruby Shoes. The idea was to save the numbers on the buttons you press in an array and then get an integer from that (loop that adds array[i] * {arraydepth} to the number). Then I would clear the stack…
0
votes
1 answer

How to install/use Ruby Shoes (without Hackety Hack)?

SOLUTION: You have the same problem, you have to compile Shoes (https://github.com/shoes/shoes/wiki/Building-Shoes-on-Linux) if rake doesn't work, try to install ruby 1.9.2 through rvm. I recently started to learn Ruby, and i came across this…
user31411
  • 1
  • 1
0
votes
4 answers

Best way to create GOOD LOOKING, multi-platform, desktop Ruby apps?

I've got an idea for an idiotically simple application, one that converts HAML and SASS into HTML & CSS files for the user by watching directory changes (like Compass). Almost all the components are already available in the community, I just need to…
btelles
  • 5,390
  • 7
  • 46
  • 78
0
votes
1 answer

Issue while calling particular method inside button block in shoes4

While calling method inside button block in SHoes4 it throws error undefined local variable or method `get_notes' . But when i call inside action it works fine, Code: class ShoesApp include Shoes url '/', :index def index para…
Beena Shetty
  • 3,676
  • 2
  • 28
  • 31
0
votes
1 answer

Issue with Shoes setup

When i am running shoes.rb file, which contains code to install gem, it throws error. Undefined method setup for Shoes:Class Code: Shoes.setup do gem 'activerecord' # install AR if not found require 'active_record' require 'fileutils' …
Beena Shetty
  • 3,676
  • 2
  • 28
  • 31
0
votes
1 answer

Ruby Shoes won't start in Leopard

So I wanted to try doing some easy Ruby GUI programs using Ruby Shoes. I downloaded Shoes 3 for OS X, opened the dmg and installed it to the Applications folder. When I click on the icon in the folder, or drag a source code file to it, the icon…
Displaced Hoser
  • 871
  • 3
  • 13
  • 35
0
votes
1 answer

Using the Ruby Shoes GUI toolkit, how would I go about being able to edit my GUI in different areas of code

I'm writing a horse race/bet game using Shoes and I was wondering how I would be able to change the GUI in different areas of code. When I run this, I get the horse on one application and then the race line on another application, but I want them…
Skorpius
  • 2,135
  • 2
  • 26
  • 31
0
votes
1 answer

Output answers in to textfile?

I'm using ruby and shoes to create a test for some students. I want to know how to have them click a button and their answers in the text boxes are sent to the desktop in a text file format. Thanks.