'Cannot parse coordinates from 'wxCENTER_ON_SCREEN'
Is this the wrong pos??
Yes. <pos> is expecting two integers just like <size>. If you want to center the dialog you can do it after it has been loaded from the resource by calling its Center method.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
How can i write the information from checkboxes in a file? Program runs
without errors, the file get after running 1kb, but there is nothing in
file...
How can i write the information from checkboxes in a file? Program runs
without errors, the file get after running 1kb, but there is nothing in
file...
GetString is only valid for selection events from a wxListBox or wxChoice control, not for EVT_CHECKBOX.
If you just want to know if the checkbox is checked, you can call event.IsChecked(). If, however, you want to retrieve the label of the checkbox ("Name" in the example above) you need a reference to the wxCheckBox object, so you can call its GetLabel method (inherited from wxControl). You can store a reference in self.mycheckbox (or whatever variable you want) when you create it. Or (in wxPython only, not wxWindows), you can call event.GetEventObject() to retrieve a reference to the checkbox object.
A variety of different EVT_ macros generate wxCommandEvents because they are the only kind of event which will be sent to the parent of the control if the control itself doesn't handle it. However, since the underlying controls are not the same, wxCommandEvent has a lot of methods which don't apply to all events. If you read the wxCommandEvent documentation for each method, it says to which events it applies.