[wxPython-users] Re: XRC and dynamically created widgets?
Robin Dunn
robin at alldunn.com
Wed Oct 4 12:21:58 PDT 2006
John Salerno wrote:
> Robin Dunn wrote:
>
>> The problem is that your page window is not a child of the notebook.
>
> Yeah, I changed that a little later to self.frame and self.panel, just
> to experiment. Both work better, but still with very bizarre behavior
> (i.e., the text box controls appear on top of each other until you
> switch tabs).
The notebook pages must be children of the notebook, otherwise when the
notebook tells the page to position itself at (x,y) it will be at the
other parent's (x,y) not the notebook's. Also the notebook and the page
will end up being siblings or cousins instead of a parent/child, so the
z-order of the windows will be messed up. Both of these problems are
demonstrated by your sample.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list