RE: Splitting MainWindow Class over several modules.

2008-04-16 Thread Ryan Ginstrom
> 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 an

Re: Splitting MainWindow Class over several modules.

2008-04-16 Thread Mike Driscoll
On Apr 16, 10:47 am, Iain King <[EMAIL PROTECTED]> wrote: > Until recently almost all my python programs were held 1 file for 1 > program. This had grown unwieldy for one of my projects, so i decided > to refactor it, and ended up with something like this: > > --- > > import wx > > import options

Splitting MainWindow Class over several modules.

2008-04-16 Thread Iain King
Until recently almost all my python programs were held 1 file for 1 program. This had grown unwieldy for one of my projects, so i decided to refactor it, and ended up with something like this: --- import wx import options import gui import scf class MainWindow(wx.Frame): def __init__(s