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

Ruby Shoes, multiple element deletion

Basically I'm trying to reprint this method every time a dropbox option is selected. However, the: inscription "test", :margin => 1, :stroke => rgb(x, x, x) Elements do not delete. They just append themselves to the old ones. I can't seem to find a…
Darkstarone
  • 4,590
  • 8
  • 37
  • 74
0
votes
1 answer

Ruby Shoes Hover element

Hover element dosen't work. Where is problem? How fix it? Shoes.app :width => 635, :height => 410 do background image "http://PATH_TO_IMAGE" a = stack :width => 360, :height => 200, :margin_left => 250, :margin_top => 200 do hover…
John
  • 1
0
votes
2 answers

Run Shoes clone in IronRuby

I found cool article on Creating cross platform GUI's with IronRuby where someone re-created the [Shoes](http://en.wikipedia.org/wiki/Shoes_(GUI_toolkit) DSL by _why the lucky stiff in IronRuby. Awesome right! So, I downloaded the IronRuby…
jrhicks
  • 14,759
  • 9
  • 42
  • 57
0
votes
1 answer

Can't align middle a list_box

I can't align middle a list_box in ruby shoes. I have test a few things, including :right => "50" or :left => "50", but it still not work. Shoes.app do stack :width => "100%", :height => "45%" do a = list_box :items => ["lol","b"], :width =>…
sidney
  • 2,704
  • 3
  • 28
  • 44
0
votes
1 answer

How to make an element take up all-the-width-that-is-left?

Shoes.app do flow do file = "something with variable length" para "Loading #{file}: " progress :width => -300 end end As you can see from the code I am trying to display a progress bar that goes from the end of the text until the…
Simon
  • 47
  • 4
0
votes
0 answers

Cyrillic Characters in Ruby Shoes using edit_line element

I have a strange problem using shoes. I have attached a screenshot of a very simple GUI I am building for a Ruby Script that I hope to use to assist me in learning the Russian language. However I am having a strange problem with Cyrillic characters.…
KennyBartMan
  • 940
  • 9
  • 21
0
votes
3 answers

Not able to execute Shoes from command

I have installed shoes on my MAC BookPro and tried executing from the terminal and got the following error message. jfleck-mbp:scripts_in_progress joe.fleck$ shoes just_for_fun.rb -bash: shoes: command not found Below you will find the installation…
Joe
  • 743
  • 5
  • 10
  • 26
0
votes
3 answers

Can't install gems that depend on hoe

I can't seem to install the twitter gem in my shoes app. When I try... Shoes.setup do gem 'twitter' end require 'twitter' I get hoe requires RubyGems version >= 1.3.1 Is this a bug in Shoes or Hoe? Any ideas on a work-around?
Scott
  • 21
  • 3
0
votes
1 answer

Does Shoes have a number input?

I'm trying my luck with Shoes and wanted to create a number input. I know there's list_box but that's a simple dropdown select which would require an array of known numbers. However I don't know how many numbers the array will hold. It could be…
0
votes
1 answer

How do I apply border to a flow on click?

I've got this piece of Shoes app: flow :top => 10, :left => 10 do flow :width => 0.3 do para @board.deck.card click do if @board.source_pile @board.source_pile = nil @deck_border.hide else …
squil
  • 121
  • 3
  • 7
0
votes
2 answers

Update value displayed based on instance variable?

As far as I know, if all I wanted to do was do "puts" in a console, then I would not be having to ask this question. (However, finally I am asking you all at StackOverflow myself, though I've been visiting for years.) Here is my issue: I am trying…
virgil9306
  • 15
  • 4
0
votes
1 answer

No Gui Option?

Ok, well I'm really pushing the bounds as to what shoes is for here, so I don't expect any miracles: is there a way to optionally run a shoes app without a gui? The reason I'd like to do this is I'm creating a tool for use by "non computer people",…
shawn
  • 25
  • 3
0
votes
1 answer

Using shoes ask() to do math?

Hi guys I am using shoes to tackle a problem for ign's code foo. The problem is You own a license plate manufacturing company. Write a program that takes a population and determines the simplest pattern that will produce enough unique plates. Since…
-1
votes
1 answer

Is there any way to generate a random integer using Shoes?

I'm making sort of a guessing game using the ruby GUI framework Shoes. I am very, VERY new to it and would like to know if it's possible to generate a random integer. In regular ruby, for example, if you wanted to generate a number from one to ten,…
Donoru
  • 115
  • 1
  • 15
-1
votes
1 answer

Ruby Shoes animation

Why only the first animation works good in my program? An image should move from left to the right and then from right to the left. This is happening only from left to the right. Shoes.app do @im = image("D:/image.jpg", left: 0, top: 220, width:…
Tkinter
  • 19
  • 1
  • 3
1 2 3
21
22