473,387 Members | 1,749 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Validators and wxPython

Hi there,
I have a little problem. If I put a validator in a wxTextCtrl, If you enter text, the background color changes to an awful grey color, what can I do for this not to happen?
Jan 26 '07 #1
5 2049
Motoma
3,237 Expert 2GB
Hi there,
I have a little problem. If I put a validator in a wxTextCtrl, If you enter text, the background color changes to an awful grey color, what can I do for this not to happen?
Have you explicitly set the default style for the wxTextCtrl?
Jan 26 '07 #2
Have you explicitly set the default style for the wxTextCtrl?
No
If you say
Expand|Select|Wrap|Line Numbers
  1.  
  2. txtctrl = wx.TextCtrl(self,
  3.             -1,"", name = "atext" 
  4.             validator = Validator.Validator(Validator.s+ Validator.o, maxcount=4))
  5. txtctrl.SetBackgroundColour(wx.WHITE)
  6.  
then it still does that, am I missing something?
Jan 26 '07 #3
bartonc
6,596 Expert 4TB
Hi there,
I have a little problem. If I put a validator in a wxTextCtrl, If you enter text, the background color changes to an awful grey color, what can I do for this not to happen?
I haven't played with validators yet, but have a need to do so soon. Is this your fedora or windows install? Is there a difference?
Jan 28 '07 #4
I haven't played with validators yet, but have a need to do so soon. Is this your fedora or windows install? Is there a difference?
It is in Fedora,
I haven't had much experience in Windows with Validators.
It is really annoying, it gives the impression that it is disabled.
This problem may sound stupid, but a lot of not-so-smart people may need to see the app, and then they get confused
Feb 5 '07 #5
bartonc
6,596 Expert 4TB
It is in Fedora,
I haven't had much experience in Windows with Validators.
It is really annoying, it gives the impression that it is disabled.
This problem may sound stupid, but a lot of not-so-smart people may need to see the app, and then they get confused
I think that the easiest way to track down things like this is to make a simpleApp with just enough stuff in it to reproduce your problem. That way you can post it here and I can run it under windows or you can take it to your other machine by any convenient means in order to compare the two installations. I have seen that many times, in making the simpleApp, you will discover something in the larger app that is causing the odd behaviour. Or you will find that this situation arises from version/installation problems. I highly recommend that you make sure you are using current versions of wx (2.8.0 minimum).
Feb 5 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: timothy.williams | last post by:
I'm trying to install wxPython 2.5.3.1 using Python 2.3.2 on a Fedora 2 machine. I have python in a non-standard place, but I'm using --prefix with the configure script to point to where I have...
1
by: Tom Pearson | last post by:
I create controls and validators dynamically dependent on data at runtime. I create the control then the relevant validator(s) for it assigning the Control.ID as the control to validate. These...
0
by: Tom Pearson | last post by:
I create controls and validators dynamically dependent on data at runtime. I create the control then the relevant validator(s) for it assigning the Control.ID as the control to validate. These...
6
by: Mark | last post by:
We have Validators embedded in an asp table server control. The table server control is necessary and cannot be replaced. We want to apply CSS formatting to the validators, but the validators...
3
by: John Blair | last post by:
Hi, I have validators outside of a datagrid (for adding a new grid row) - however when i click "edit" column and then the "update" column of a grid row that has been edited - my other...
1
by: epigram | last post by:
I'm trying to use the ASP.NET validators to check some client-side business rules. I've got two ASP TextBox controls (call them tbxYear1 and tbxYear2) used to enter a range of years. I've got a...
1
by: Gabriel Lozano-Morán | last post by:
When using the tabstrip control combined with a multipage (several pageview) there is a problem when using validators. The problem is that validation also occurs on the validators that are not on...
2
by: Mike Surcouf | last post by:
Hi I have some regex validators on my page set to dynamic and like the way they appear after you tab out of a field and also when you try to postback the form. All OK so far When I register...
0
by: Robin Dunn | last post by:
Announcing ---------- The 2.6.3.0 release of wxPython is now available for download at http://wxpython.org/download.php. There have been many enhancements and fixes implemented in this...
4
by: Madhur | last post by:
Hello All I am learning how to use ASP.NET Validators and would appreciate if someone could provide me with guidance. I have written very simple ASPX page below with a Dropdown list, a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...

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.