Ruby and windows GUI

hello,

a friend of mine has asked me to write a quick and simple application
that should run only on windows OSes. It should be a desktop GUI
application. It’s pretty simple in its working as it should basically
just move some given files from one location to a couple of others.
I am completely unexperienced on ruby on windows, and have little
experience with ruby and GUIs, so here I am with my questions:

  1. guess I should pack it with RubyScript2Exe to make it executable on
    any windows machines, right?
  2. is there a (quick) way to build a GUI box that will allow me to
    select interactively a filesystem path using only the mouse? What
    library should I stick to?

Thanks
Andrea

On Thu, Oct 7, 2010 at 12:10 PM, spaghetticode
[email protected] wrote:

hello,

  1. guess I should pack it with RubyScript2Exe to make it executable on
    any windows machines, right?
    Pretty much. Or you can create a setup archive, including the Ruby
    interpreter and your app. It’ll clock in rather heavily, but you have
    pretty much perfect control where what goes.
  1. is there a (quick) way to build a GUI box that will allow me to
    select interactively a filesystem path using only the mouse? What
    library should I stick to?

Any will work, and which you want to stick to depends on what GUI
toolkits you have worked with already. If your stance is “no
preference” or “never worked with GUI toolkits at all”, you could give
Shoes[0] a try.

[0] http://shoes.heroku.com/


Phillip G.

Though the folk I have met,
(Ah, how soon!) they forget
When I’ve moved on to some other place,
There may be one or two,
When I’ve played and passed through,
Who’ll remember my song or my face.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 07.10.2010 12:10, schrieb spaghetticode:

  1. guess I should pack it with RubyScript2Exe to make it executable on
    any windows machines, right?

No. rubyscript2exe has been abondoned by it’s maintainer. Use OCRA (
http://rubygems.org/gems/ocra ) instead.

  1. is there a (quick) way to build a GUI box that will allow me to
    select interactively a filesystem path using only the mouse? What
    library should I stick to?

wxRuby ( http://wxruby.rubyforge.org ) has FileDialog and DirDialog for
this.

Vale,
Marvin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJMree0AAoJEGrS0YjAWTKVl98H+wVGnpsaM0CAI1aarbk5teW4
Zn5A5OmOOmXj7uD83UpTs0sbrDrS3xNijKlNUPMFYLr6N0LAsubITZKmpL/Zy9O5
a2n4nSTb9c0Z2kiUp6mKykmIMJuWJB+BldGB1YhW9PNbDnQ2hrzuF/6gv0dZ1KE1
0OqGMWbZV5krAslftFL29iq8Ka+eppbW0yQAkyPE4+ynIU13vhefXijHvsPI96ih
HBUOfIi3yQ5EBocQtTU19oqUCSFSHBfzg20MJPM+JVX6EQbPeUe0lKWWa7PubP+i
LMfzetp2Q//IH67y5ZDw5mK1Y8wk907ztf1F+Gtu0jKhKLcXcaUIh4F/iihN+KE=
=/a/m
-----END PGP SIGNATURE-----

I agree with Quintus, OCRA and wxRuby are the way to go. If you want to
see
an example of an application I created for that check out
http://github.com/javaalley/dragons_keep. I also used datamapper for a
database engine.


Allan D.
http://www.linkedin.com/in/javaalley

a friend of mine has asked me to write a quick and simple application
that should run only on windows OSes. It should be a desktop GUI
application. It’s pretty simple in its working as it should basically
just move some given files from one location to a couple of others.

recommend jruby + swing + rawr
-r

Allan D. removed_ema[email protected] wrote:

I agree with Quintus, OCRA and wxRuby are the way to go. If you want to see
an example of an application I created for that check out
http://github.com/javaalley/dragons_keep. I also used datamapper for a
database engine.

Thanks to everyone for the bootstrap, that was exactly what I needed

Andrea

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs