A Python GUI Book.

Robert Amesz sheershion at mailexpire.com
Tue Nov 13 17:17:32 EST 2001


Steven Rumbalski wrote:

> Michael 'Mickey' Lauer <mickey at tm.informatik.uni-frankfurt.de>
> wrote in message news:<3beedf26 at nntp.server.uni-frankfurt.de>... 
>
>> What do you think would be a good application to show the basics
>> and a few more sophisticated topics in programming GUI
>> applications with Python? 
> 
> My $.02:
> 
> How about a simple text editor?  Whatever application you present
> you should probably have either an appendix or an early chapter
> explaining the code that will stay the same across each
> implementation.

That's trivial if you use a standard display component (e.g. the 
wxTextCtrl or wxStyledTextCtrl for wxPython) or very hard if you're 
starting from scratch.

Hmmm, how about an .INI/.CFG file editor? You could start by using a 
standard text control, and then move on to different and more 
sophisticated ways (perhaps using tree controls and different panes). 
As a piece de resistance you could us a thread to monitor if the 
.ini/.cfg file has changed by another program and merge it with your 
copy if it has, updating the display. This would be a good 
demonstration of how a GUI can react to things from the outside (a 
point which was raised by Laura Creighton).


Robert Amesz



More information about the Python-list mailing list