fr00ty_l00ps
fr00ty_l00ps

Reputation: 730

Portable Ruby GUI Toolkit

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?

Upvotes: 3

Views: 1212

Answers (4)

peter
peter

Reputation: 42207

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

Upvotes: 0

peter
peter

Reputation: 42207

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}")}
}

Upvotes: 1

sylvain.joyeux
sylvain.joyeux

Reputation: 1699

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

Upvotes: 1

Alex D
Alex D

Reputation: 30485

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?

Upvotes: 0

Related Questions