Are there any documents outlining or describing in detail the limitations of the wxHTML group of widgets? Specifically what kind of limitations are there on types of documents that can be viewed and/or parsed? Can the wxHTML handle java, perl cgi's, and php documents?
Thanks,
steve
···
--
"When you do become Satan's Mistress, as you've always dreamed, don't forget us, the little people"
Newby Alert: anyone willing to answer a few questions about events?
I want to perform a function if the text length of a text control is equal to 5.
I am a new to python and I really dont completely get the C documentation.
I am not sure how to code an "on change" event so i can check the length.
I have been reading controls.py and the wxWindows page for wxTextCtrl and certain parts of the docs are confusing the #$%^ out of me
Are there any documents outlining or describing in detail the limitations of the wxHTML group of widgets? Specifically what kind of limitations are there on types of documents that can be viewed and/or parsed?
If they are coming from a server via http wxHTML doesn't care who generates them. As long as nothing too fancy is done in the html content of the document then wxHTML is happy.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
Newby Alert: anyone willing to answer a few questions about events?
I want to perform a function if the text length of a text control is equal to 5.
I am a new to python and I really dont completely get the C documentation.
I am not sure how to code an "on change" event so i can check the length.
I have been reading controls.py and the wxWindows page for wxTextCtrl and certain parts of the docs are confusing the #$%^ out of me
If you bind a handler with EVT_TEXT then it will be called every time the value of the text control is changed.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
Newby Alert: anyone willing to answer a few questions about events?
Nah, we especially ignore event-based questions
I want to perform a function if the text length of a text control is
equal to 5.
I am a new to python and I really dont completely get the C documentation.
I am not sure how to code an "on change" event so i can check the length.
I have been reading controls.py and the wxWindows page for wxTextCtrl
and certain parts of the docs are confusing the #$%^ out of me
The demo is your friend; it has excellent examples for this sort of stuff.
But basically, look at the docs for wxTextCtrl and read up on the EVT_TEXT
event binder. This event is fired every time the text in the control is
changed. You only need to connect this event to an event handler. For
example:
# Imagine we've got a text control called
# self.text_input with ID 101
EVT_TEXT(self, 101, self.ProcessText)
This connects that particular text control to a method called ProcessText().
That function accepts exactly two args, 'self' and the event that fired.
def ProcessText(self, event):
if len(self.text_input.GetValue()) >= 5:
# do something useful
event.Skip() # Let someone else look at it too
But, an even easier way to do this is to use validators. Unfortunately I
don't use 'em that much but I'm sure somebody will pipe up