I'm attempting to learn wxPython using the new namespace. (wx) I search the API documentation and try to use it. (I've downloaded the latest documentation) and when I try to use it, I get errors on undefined global names, functions etc.
I get an error claiming that wxOK not defined yet the documentation shows that it is. If I take the wxOK out then it gives me the dialog with an "ok" and a "Cancel" button and that isn't what I'm looking for. Althought the documentation shows it as wxMessageDialog() instead of wx.MessageDialog() (without the period) My question is this. Is there any API documentation that supports the new namespace? (if that is in fact what my problem is here)
I'm attempting to learn wxPython using the new namespace. (wx) I search the API documentation and try to use it. (I've downloaded the latest documentation) and when I try to use it, I get errors on undefined global names, functions etc.
For intance. I call...
I get an error claiming that wxOK not defined yet the documentation shows that it is. If I take the wxOK out then it gives me the dialog with an "ok" and a "Cancel" button and that isn't what I'm looking for. Althought the documentation shows it as wxMessageDialog() instead of wx.MessageDialog() (without the period) My question is this. Is there any API documentation that supports the new namespace? (if that is in fact what my problem is here)
Any help would be fantastic.
For almost every 'wx' you see in the docs, replace it with 'wx.' and you'll do fine.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!