Dear list,
I'd like to know how you are handling the two step creation
process when using
own derived controls with xrc.
At least on wxGTK in some cases the creation of the window
is delayed until is
becomes visible, e.g. a panel sitting on a notebook page.
This means that you
can't access attributes which are set up in the
WINDOW_CREATE evt handler before
the user makes that window visible. Therefore I just dropped
waiting for the
event and called the handler by hand directly after
self.PostCreate(obj). I was
lucky that it worked for my app which heavily uses xrc both
on linux and
windows. Now however, while building test cases for the
custom xrc based
controls, i.e. a small test application which opens a frame
holding that
control, I encountered problems with that method, more
precisely the test app
segfaults. This happens on the code right after PostCreate,
so this is obviously
due to not waiting for the WINDOW_CREATE event.
So the question to those who are using xrc out there: how do
you handle that issue?
Christian
------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-users-unsubscribe lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help lists.wxwidgets.org
|