Using maskededit controls with xrc and wxpython

Discussion in 'Python' started by Dave Williams, Jun 14, 2004.

  1. Hi,
    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
    only".

    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.
    Thanks
    Dave
     
    Dave Williams, Jun 14, 2004
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mark Moss

    XRC, wxMenuBar's, and wxMenuBarPtr's

    Mark Moss, Sep 6, 2003, in forum: Python
    Replies:
    1
    Views:
    390
    Lukasz Pankowski
    Sep 6, 2003
  2. Active8

    Python23 and XRC support

    Active8, Sep 6, 2004, in forum: Python
    Replies:
    2
    Views:
    325
    Harald Massa
    Sep 6, 2004
  3. Austin

    XRC and wxPython

    Austin, Oct 20, 2004, in forum: Python
    Replies:
    1
    Views:
    662
    Dennis Benzinger
    Oct 20, 2004
  4. Paul Marrero

    AJAX MaskedEdit Question for Time Entry

    Paul Marrero, Jul 25, 2008, in forum: ASP .Net
    Replies:
    0
    Views:
    540
    Paul Marrero
    Jul 25, 2008
  5. Bobby Edward

    Ajax MaskedEdit Extender Question

    Bobby Edward, Oct 9, 2008, in forum: ASP .Net
    Replies:
    0
    Views:
    568
    Bobby Edward
    Oct 9, 2008
  6. azrael

    XRC and AGW

    azrael, Jul 26, 2011, in forum: Python
    Replies:
    1
    Views:
    323
    Ian Kelly
    Jul 26, 2011
  7. Alex C. Barberi

    MaskedEdit in ASP.NET 1.1

    Alex C. Barberi, Jan 26, 2006, in forum: ASP .Net Building Controls
    Replies:
    1
    Views:
    248
    Steve C. Orr [MVP, MCSD]
    Jan 30, 2006
  8. king kikapu

    XRC vs Perl (GUI) generated code

    king kikapu, Apr 2, 2009, in forum: Perl Misc
    Replies:
    13
    Views:
    351
    ccc31807
    Apr 6, 2009
Loading...