Splitting MainWindow Class over several modules.
Ryan Ginstrom
software at ginstrom.com
Wed Apr 16 23:01:11 EDT 2008
> On Behalf Of Mike Driscoll
> I don't think there's anything wrong with it. The main thing
> to remember is to try to keep the interface and the logic
> separate. I have a fairly complex program with lots of tabs
> and sub tabs. So I stuck each of the tab's display code in a
> separate file and imported them into my main program.
There are also several signaling techniques that make it easy to separate
the GUI logic from the message-processing logic. Or you could simply have a
controller class that instantiates the GUI class and registers itself as the
message listener.
Regards,
Ryan Ginstrom
More information about the Python-list
mailing list