Hi all,

I am just starting to learn GUI programming, with wxPython. I have a script 
that that I have developed to a useful point, and I want to add a GUI to it. I 
am a little unsure as the the best approach to this. The script heretofore was 
just run at the command line. Would it make sense to add an option in the same 
script to have it run in "graphical mode", which would trigger the wxPython 
code I would add in, and otherwise use the same logic? 

More generally: Anyone have any tips on adding a GUI to a pre-existing script 
in a way that minimizes repetition of logic? I would rather not make a separate 
script that only used wxPython, and I do not think I have to, but perhaps there 
are good reasons to, etc.

Thanks,
Sam


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to