Question

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..

Was it helpful?

Solution

I recall using wxRuby for this a while ago.

OTHER TIPS

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

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

You could also use IronRuby:

Scenario 1: straight WinForms:

Scenario 2: use WPF

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top