473,470 Members | 1,840 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Using maskededit controls with xrc and wxpython

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
Jul 18 '05 #1
0 1164

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Luiz Siqueira Neto | last post by:
Somebody know how make html forms or python forms inside html to use as gui application? The idea is make a client application like a web site of my interprise for customers who don't have good...
5
by: Andrew | last post by:
Hi I just started learning wxPython I wanted to know how I could do this in wxPython self.listbox.delete(0, END) for item in self.results: self.listbox.insert(END, item)
3
by: Micah | last post by:
Is there an os module call to request that Windows handle a specific file using the default handler? For example, if I pass it a .txt file it opens notepad but if I pass a .wav file it opens...
3
by: Kenneth McDonald | last post by:
If this is not an appropriate newsgroup for this type of posting, please let me know and (if possible) suggest an alternative. I've done a fair bit of research on the net, but information is...
2
by: Agnes | last post by:
I read some old news. someone post that " There will be a MaskedEdit control included in .NET for the next version release " is that mean .net 2003 ???
3
by: patang | last post by:
I want to restrict users to enter only numbers in a textbox control. I have written a code in keypress to prevent user to enter other than numeric values. I have also read many places that I can...
0
by: Carmon | last post by:
If I set KeyEventArgs.SuppressKeyPress to true in a MaskedEdit box and have a mask assigned, it will still allow backspace to erase data. I attempted the same thing in C# and it allowed it as...
3
parshupooja
by: parshupooja | last post by:
Hey All, I am trying to used Masked Edit controls of Ajax in gridview. I have 14 rows in gridview,but masked edit control only works for first row. Any Idea. Plz Help <asp:GridView...
5
by: Joe P. Cool | last post by:
So far I have a little experience with Tkinter and wxPython. I wonder which of the numerous Python GUI kits would be the best choice for a multi platform application that makes heavy use of custom...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.