Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Using maskededit controls with xrc and wxpython

Thread Tools

Using maskededit controls with xrc and wxpython

Dave Williams
Posts: n/a
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/ 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.
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ajax MaskedEdit Extender Question Bobby Edward ASP .Net 0 10-09-2008 08:53 AM
AJAX MaskedEdit Question for Time Entry Paul Marrero ASP .Net 0 07-25-2008 06:10 PM
MaskedEdit in ASP.NET 1.1 Alex C. Barberi ASP .Net Building Controls 1 01-30-2006 06:17 PM
XRC and wxPython Austin Python 1 10-20-2004 08:45 AM
XRC, wxMenuBar's, and wxMenuBarPtr's Mark Moss Python 1 09-06-2003 07:31 AM