From: Riaan B. <riaan@e.co.za> - 2002-02-05 17:30:25
|
Hello Hans-Peter, Hans-Peter Jansen wrote: > > Hi wxPythonics, > > I'm currently working on an inhouse project, involving ui for different > forms/grids working on sql databases. On a former project, I chose > notebooks for the different forms, but found that concept too limiting > (scrolling notebooks is awfull). > > Now that I dicovered boa (again), I consider the "outlook" way as a nice > alternative: Using a wxTreeCtrl on the left, main screen right, and > a log frame (wxTextCtrl) below (based on two spitter windows): > > +------------+----------------------------------------+ > | Task1 | Main | > | Subtask1 | | > | Task2 | | > | Subtask2 | | > | | | > | | | > | |----------------------------------------+ > | | Log | > | | | > +------------+----------------------------------------+ > > I think wxPanel would be the right container for Main, is it? > > What I want to archieve, is creating the different main forms separately > in external wxFrames or the like. I tried in wxFrame1: > > def __init__(self, parent): > self._init_ctrls(parent) > > import wxFrame2 > self.dblogin = wxFrame2.create(self.mainWin) > > self.mainWin is the wxPanel mentioned above. > > Doesn't work :-( I also tried wxScrolledWindow as a container. > > How can I layout different forms externally and overlay them > in my mainWin with Boa? Any hints? As Robin explained, wxFrames are top level windows. Boa offers no direct support for this at the moment, although it's an often requested feature. It will be one of the things I will be looking into next. See Docs/boa/apphelp/MixingSource.html for ideas about what is possible. > > For your confidence, I've attached this example. > > Thanks for listening, > Hans-Peter > > ------------------------------------------------------------------------ > Name: wxFrame2.py > wxFrame2.py Type: Plain Text (text/plain) > Encoding: base64 > > Name: wxFrame1.py > wxFrame1.py Type: Plain Text (text/plain) > Encoding: base64 > > Name: wxApp1.py > wxApp1.py Type: Plain Text (text/plain) > Encoding: base64 -- Riaan Booysen ___________________________________________________ Boa Constructor - RAD GUI building IDE for wxPython http://boa-constructor.sourceforge.net |