<br>I&quot;m writing a cmd line program which will automate getting some modules out of cvs, based on some<br>input criteria.<br><br>Initiallly, I will do a cmd line version, but would like to make a gui version later with QT.
<br><br>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 (without gui).<br><br>The gui itself will be very simple- A listbox, and button or two.
<br><br>python program.py<br><br>would run incmd line mode<br><br>python program.py -g <br><br>would run in gui mode.<br><br><br>How difficult is this to do? Can anyone think of a simple example of a python app that runs in gui mode &amp; cmd line mode?
<br><br>thanks<br>
<br>