From: Ralph Shnelvar Date: 2010-09-04T00:25:36+09:00 Subject: Re: GUI for commandline programs ------------12B152F7195C79B3 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Dave, Friday, September 3, 2010, 2:31:12 AM, you wrote: DL> Handy Gandy wrote: >> I'm looking for a simple, easy to learn, low weight GUI for use in Ruby >> programs that mainly use the command line but where a bit of GUI might >> be >> in order. >> To give a clearer idea, let me show some examples: >> 1) Going to a youtube user that has multiple playlists, parsing the >> playlist then opening a GUI with a list of the playlists so you can >> chose >> which to download. >> 2) At a point in the program, you need to specify a folder to store your >> data in, so you want to pop open a folder save dialog box, then continue >> with your basic commandline program. >> 3) A loop in a program input a file, parses the input and creates a >> (directed acyclic) graph from it. There is a bug someplace between the >> parser and the graph generator. You put a form at the beginning showing >> input data some intermediate variables, and drawing the graph as it >> evolves to visualize what is going wrong. >> I hope from these three examples that the things I am looking for in a >> GUI toolkit clear. The GUI elements are incidental to the main program, >> the main program is a commandline program and for some reason or other a >> part of the program is made simpler with a bit of GUI. This however is >> only the case if the GUI is itself simple. Spending a lot of time >> setting up an application loop and a GUI justs mucks things up in this >> case. Also, in each case the GUI portion is started and stopped several >> times in one run of a program. >> Suggestions? DL> I have used fxruby & foxGUIb successfully for a wee while. DL> FoxGUIb for the GUI (and it uses fxruby). DL> Also I've used Shoes. DL> So I can recommend either for you're solution. I use FxRuby for exactly that purpose and I like it a lot. Sadly, it has reached end-of-life and neither the underlying FOX C++ library or FXRuby that uses it seem to be supported. ------------12B152F7195C79B3--