468,135 Members | 1,436 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,135 developers. It's quick & easy.

Using maskededit controls with xrc and wxpython

I'm having problems getting IpAddrCtrl working with a frame containing
nested sizers generated from an xrc file.

Firstly I tried adding it using AttachUnknownControl as per the
example code Using XMLResources on the wxPython wiki. This renders but
does not size correctly despite my trying many different variations.
Because of my nested sizers I also seem to have to SetSizeHints etc at
a higher level than in the example. Also I note that some of the
functions used are marked in the wxWidgets docs as "for internal use

Secondly I tried using subclassing as per the XMLResource*.py demos in
the wxWigets/wxPython. This has the problem that it uses 2 stage
creation which IPAddrCtrl etc doesnt support out of the box (yet?). As
a Python newbie I'm still finding my way around so dont know how
difficult that is to implement.

I also note that XmlSubclassFactory_Python in wx/xrc.py will only
instantiate a control using klass = getattr(module, cname) then
klass() which does not allow for any parameter passing at that stage.

Can anyone point me in the right direction? I need to get forward with
my overall development and can't afford to get stuck on something that
admittedly I had hoped would be "routine" to implement.
Jul 18 '05 #1
0 1061

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Luiz Siqueira Neto | last post: by
5 posts views Thread by Andrew | last post: by
3 posts views Thread by Kenneth McDonald | last post: by
3 posts views Thread by patang | last post: by
5 posts views Thread by Joe P. Cool | last post: by
27 posts views Thread by didacticone | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.