I was trying to find an example about validators. The wxpython demo is a great resource, however I couldn't find any example transferring data to and from python variables.
Can such an example be found anywhere?
How can I pass a "reference" to the python variable to the validator?
I was trying to find an example about validators. The wxpython demo is a great resource, however I couldn't find any example transferring data to and from python variables.
Can such an example be found anywhere?
How can I pass a "reference" to the python variable to the validator?
Do you, people, generally use validators?
I use validators a lot. Take this non-tested code as an example:
class MyValidator(wx.PyValidator):
def __init__(self, data, key):
self.data = data
self.key = key
I was trying to find an example about validators. The wxpython demo is a great resource, however I couldn't find any example transferring data to and from python variables.
Can such an example be found anywhere?
How can I pass a "reference" to the python variable to the validator?
Do you, people, generally use validators?
I use validators a lot. Take this non-tested code as an example:
same code as an attachment, to not lost indentation.
I was trying to find an example about validators. The wxpython demo is a great resource, however I couldn't find any example transferring data to and from python variables.
Can such an example be found anywhere?
How can I pass a "reference" to the python variable to the validator?
Do you, people, generally use validators?
I use validators a lot. Take this non-tested code as an example:
same code as an attachment, to not lost indentation.
I was trying to find an example about validators. The wxpython demo is a great resource, however I couldn't find any example transferring data to and from python variables.
Can such an example be found anywhere?
samples/wxPIA_book/Chapter-09/validator2.py
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!