There's a way in XRC to accept custom elements in the xml file, so you
dont' have to replace it. I'd point you to a page on the wiki, but the
wxpyhton site seems to be down.
Josh
Here is, what I want to do:
1.) I have written a custom Widget "Grating" inherited from wxPanel which works fine when loaded into a programm not using xrc.
2.) I'd like to replace an empty wxPanel which I put into the XRC-layout as a place holder by my custom widget.
If going the route of the custom handler doesn't work for you then an easy workaround is to make your Grating widget be a child of the placeholder panel, and use a sizer such that the grating widget completely fills the placeholder.
···
On Wed, Jul 16, 2008 at 8:11 AM, Christian Weickhmann > <christian.weickhmann@gmx.de> wrote:
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
If going the route of the custom handler doesn't work for you then an
easy workaround is to make your Grating widget be a child of the
placeholder panel, and use a sizer such that the grating widget
completely fills the placeholder.
that is _exactly_ what I'm looking for. But how do I do this?
If going the route of the custom handler doesn't work for you then an
easy workaround is to make your Grating widget be a child of the
placeholder panel, and use a sizer such that the grating widget
completely fills the placeholder.
that is _exactly_ what I'm looking for. But how do I do this?