[wxPython-users] Subclass XRC & Two stage creation

Robin Dunn robin at alldunn.com
Thu Jan 3 09:52:26 PST 2008


?? wrote:
> Hi Robin,
>      It seems that the real world is much more complicated. I set
> breakpoints in the handler and find that it has been invoked no matter
> the event is EVT_WINDOW_CREATE, EVT_SIZE or EVT_PAINT. But only
> EVT_PAINT works.
>      The behavior of color setting in EVT_WINDOW_CREATE, EVT_SIZE is
> equivalent that  ONLY self.VisitedColour is set. Furthermore, if there
> is no URL info in XRC file and I put self.URL = ... in
> EVT_WINDOW_CREATE, EVT_SIZE handler, it is useless. The control
> behaves as no URL attached; my setting is overwritten by something.
> Very strange eh?
>      I'm really confused... Could someone give me a insight explaination?

Please provide a runnable sample and I'll see if I can spot what is 
happening.  Also, be sure to mention platform and version.



-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!




More information about the wxpython-users mailing list