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?
5 2049
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?
Have you explicitly set the default style for the wxTextCtrl?
No
If you say -
-
txtctrl = wx.TextCtrl(self,
-
-1,"", name = "atext"
-
validator = Validator.Validator(Validator.s+ Validator.o, maxcount=4))
-
txtctrl.SetBackgroundColour(wx.WHITE)
-
then it still does that, am I missing something?
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?
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
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).
Sign in to post your reply or Sign up for a free account.
Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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,...
|
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$) {
}
...
|
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...
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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,...
| |