473,721 Members | 2,254 Online
Bytes | Software Development & Data Engineering Community
+ 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 AttachUnknownCo ntrol 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 XmlSubclassFact ory_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 1172

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

Similar topics

3
2819
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 connection, in this way the customer can select the products off line and connect only to execute the shop. The use of HTML is to have the same paradigm to application and to site.
5
10620
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
1589
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 Windows Media Player. Any ideas? -- ================================= Micah Z. Wedemeyer Research Scientist I, ELSYS
3
2279
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 scattered all over the place and I haven't been able to find mailing lists relating specifically to python and UIs. I'd like to start using Python for some GUI programming again. I'd like to use Tk, but it seems to be dying a slow death, so it's...
2
1127
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
1507
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 use MaskedEdit Control. My questions is why can't I see this control in my Toolbox just like I can see other controls like textbox, radio button etc. Thanks.
0
1624
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 well. If I do not have a mask assigned, it works as I'd expect. Is this a known issue? Either way, is there a work around for this or another method to disallow entry under certain cases? Thanks,
3
7414
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 ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowDataBound="gvOnRowDataBound" CellPadding="6" CssClass="GridStyle" Width="600" ShowFooter="True"> <RowStyle CssClass="GridItem" /> <AlternatingRowStyle CssClass="GridAltItem" />...
5
1357
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 controls, 3D views and the like? Thanks in advance for your hints and advice. Joe
0
8730
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9367
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9215
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9064
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8007
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4484
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4753
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2130
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.