I'm wondering if this (snipped from another poster)<br><br>1. Look at module cmd in the Python standard library if you have<br> &nbsp; not already. &nbsp;(see <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://docs.python.org/lib/module-cmd.html" target="_blank">
http://docs.python.org/lib/module-cmd.html</a>)<br><br>would be used for something like a built in console found in alot of games?<br><br><div><span class="gmail_quote">On 12/1/06, <b class="gmail_sendername">Tony Cappellini
</b> &lt;<a href="mailto:cappy2112@gmail.com">cappy2112@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><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>

<br>_______________________________________________<br>Tutor maillist &nbsp;- &nbsp;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Tutor@python.org">Tutor@python.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">
http://mail.python.org/mailman/listinfo/tutor</a><br><br><br></blockquote></div><br>