I would like to create a class, descended from wxDialog (or wxFrame)
that loads itself from an XRC resource. I found this page on two-stage
creation in the wiki
(http://wiki.wxpython.org/index.cgi/TwoStageCreation), which implies
that this is possible to do. However, I've just started using XRC and
so I'm not sure what the mechanics are. Can anyone provide some
direction?
I would like to create a class, descended from wxDialog (or wxFrame)
that loads itself from an XRC resource. I found this page on two-stage
creation in the wiki
(http://wiki.wxpython.org/index.cgi/TwoStageCreation), which implies
that this is possible to do. However, I've just started using XRC and
so I'm not sure what the mechanics are. Can anyone provide some
direction?
Good question. I've just updated that wiki page with what I think will work, but it is untested so let me know how it goes.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
Nathan R. Yergler wrote:
> I would like to create a class, descended from wxDialog (or wxFrame)
> that loads itself from an XRC resource. I found this page on two-stage
> creation in the wiki
> (http://wiki.wxpython.org/index.cgi/TwoStageCreation), which implies
> that this is possible to do. However, I've just started using XRC and
> so I'm not sure what the mechanics are. Can anyone provide some
> direction?
>
Good question. I've just updated that wiki page with what I think will
work, but it is untested so let me know how it goes.