views:

447

answers:

5

Is it possible to create a form on Windows using Ruby? I have a Ruby script and I would like to have an input form to ask for a user's password, then use this in the rest of my script.

update: I have successfully done this with wxRuby, although it looks ugly. Shoes looks promising, I might look into that if I need to do this again..

+4  A: 

I recall using wxRuby for this a while ago.

Ryan Duffield
A: 

IronRuby runs on the .NET runtime and as such has access to all of the .NET winforms API. It's in development, so it may or may not meet your needs yet.

Ryan
+2  A: 

If you want just something simple, lightweight and fun to program with, I definitely recommend Shoes.

h3rald
+2  A: 

If you want something really simple, have a look at wxCocoaDialog.

Charles Roper
+1  A: 

You could also use IronRuby:

Scenario 1: straight WinForms:

Scenario 2: use WPF

Philippe Monnet