3

I am in need of a GUI toolkit that goes a little further than tk does, but my school's computers do not allow programs to run if they try to create/alter files on the local disk. Because of that, I need a portable GUI toolkit for Windows. Does anybody know of one?

4

4 回答 4

1

Qt4 and ruby-qt (the qtbindings gem works beautifully to get the ruby bindings)

于 2012-09-24T20:25:25.533 回答
1

Green Shoes, just install the gem, copy it along with your Ruby map to a stick and you are off to go.

gem install green_shoes

http://ashbb.github.com/green_shoes/App.html

a simple sample

require 'green_shoes'
Shoes.app{
  e = edit_line
  button("Click me!"){alert("You entered #{e.text}")}
}
于 2012-09-24T20:37:57.233 回答
0

For graphical applications in Ruby, I personally prefer JRuby + Swing. Presumably your school's computers have a JRE installed... perhaps you can run JRuby from your flash drive?

于 2012-09-24T18:42:35.287 回答
0

I see you haven't yet accepted an answer, so i try another suggestion. Again, you only need a Gem, Watir in this case. Your browser is the GUI. Here a question i asked and the answer i accepted

http://stackoverflow.com/questions/11724201/use-browser-as-gui-in-ruby

That example uses IE but the other browsers are possible too, this solution is cross-browser and cross OS

于 2012-10-03T21:26:42.750 回答