[Tutor] How To structure a program for cmd line mode & gui mode
cappy2112 at gmail.com
Fri Dec 1 09:21:33 CET 2006
I"m writing a cmd line program which will automate getting some modules out
of cvs, based on some
Initiallly, I will do a cmd line version, but would like to make a gui
version later with QT.
I would like to find out how to structure the program so that when the gui
version is finised, it will still be fully functional in cmd line mode
The gui itself will be very simple- A listbox, and button or two.
would run incmd line mode
python program.py -g
would run in gui mode.
How difficult is this to do? Can anyone think of a simple example of a
python app that runs in gui mode & cmd line mode?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor