On approximately 1/15/2004 4:32 AM, came the following characters from
the keyboard of Sirisha Gollapudi:
Hi all,
after some difficulty I managed to get Win32::GUI up and running - being
pretty new to this I was wondering if anyone could help with another
query. I have a fully functional perl program that at the moment is just
a simple command line interface. what's the process for turning this
into a GUI application? I realise this might be an odd question and the
answer is probably just going to be "learn Win32::GUI!!" but i'm on a
tight schedule... it's for a project which will gain me better marks if
i have a pretty interface.
thanks for any advice,
Sirisha
Does "command line interface" mean all the options are parsed from the
perl script's command line, or does it mean "interactive process reading
commands from <STDIN>"? The answer could be dramatically different for
the two cases.
For the first case, you simply "learn Win32::GUI" or The GUI Loft, and
create an interface with all the snazzy stuff you need, and then invoke
the real script with the appropriate parameters, capture the output in a
file, and display the file in a text box. At least maybe. It depends
on what your real script does.
For the second case of interactive use, it could involve redesigning the
application, unless the application's design cleanly separated the
"guts" of the application, from the "interface" of asking the user
questions. Once that separation is made, then invoking "guts" functions
from either command lines or GUI buttons is pretty straightforward.
--
Glenn -- http://nevcal.com/
===========================
The best part about procrastination is that you are never bored,
because you have all kinds of things that you should be doing.