[wxPython-users] XRC with wx.stc.StyledTextCtrl?
Robin Dunn
robin at alldunn.com
Tue Jul 4 19:24:26 PDT 2006
Michael Knopf wrote:
> Hi,
>
> I use XRC for the GUI of my app and I want to add a
> "wx.stc.StyledTextCtrl" control. But how? Is it possible to diretcly add
> one? If yes, how is the control's name in XRC? I've tried a lot, nothing
> was known. If not, do I need to add an "unknown" control and then
> override it with "AttachUnknonnControl()" (but why should the stc module
> and it's objects be unknown to XRC?)? Or do I need to use subclassing? I
> cannot find anything related to that topic (guess that I again just
> dunno how to name my problem correctly).
XRC requires that a wxXmlResourceHandler class be written in order to
support creating instances of a class from XRC, and one hasn't been
written for the STC class yet. You can create a resource handler class
for it from Python if you wish, check the demo for an example.
Otherwise using the unknown control type would be the way to go.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list