Operating System is Windows 8
Python is version 2.7.2
wxPython is version 2.9.5.0
According to the wxWidgets docs:
Event macros for events emitted by this class:
- EVT_CLOSE(func):
The dialog is being closed by the user
or programmatically (see wxWindow::Close ).
The user may generate this event clicking the close button
(typically the ‘X’ on the top-right of the title bar) if
it’s present (see the wxCLOSE_BOX
style) or by
clicking a button with the wxID_CANCEL
or wxID_OK
ids.
- EVT_INIT_DIALOG(func):
Process a wxEVT_INIT_DIALOG
event. See wxInitDialogEvent.
I can see the event when clicking the X on the dialog title bar but
not when clicking the Cancel and OK buttons with those IDs, if I
have read the description correctly. Can anyone confirm if there is
a problem with this?
···
-- Regards
David Hughes
Forestfield Software
Can you show us your code? If you are capturing the button click
events for the OK and Cancel buttons, then it’s up to you to either
close the dialog yourself or call Skip to let the framework do it.
···
David Hughes wrote:
Operating System is Windows 8
Python is version 2.7.2
wxPython is version 2.9.5.0
According to the wxWidgets docs:
Event macros for events emitted by this class:
- EVT_CLOSE(func):
The dialog is being closed by the
user or programmatically (see wxWindow::Close
).
The user may generate this event clicking the close button
(typically the ‘X’ on the top-right of the title bar) if
it’s present (see the wxCLOSE_BOX
style) or
by clicking a button with the wxID_CANCEL
or
wxID_OK
ids.
- EVT_INIT_DIALOG(func):
Process a wxEVT_INIT_DIALOG
event. See wxInitDialogEvent.
I can see the event when clicking the X on the dialog title bar
but not when clicking the Cancel and OK buttons with those IDs,
if I have read the description correctly. Can anyone confirm if
there is a problem with this?
-- Tim Roberts, Providenza & Boekelheide, Inc.
timr@probo.com
Apologies for not responding. My request for an email copy of replies to the original post wasn’t obeyed, and I have been away from the list itself. As it happens, the reason behind my post is very similar to Redirecting to Google Groups so I will follow that instead.
···
On Tuesday, November 5, 2013 6:16:31 PM UTC, Tim Roberts wrote:
Can you show us your code? If you are capturing the button click
events for the OK and Cancel buttons, then it’s up to you to either
close the dialog yourself or call Skip to let the framework do it.
-- Tim Roberts, ti...@probo.com
Providenza & Boekelheide, Inc.
–
David Hughes
It’s not pretty, but when I need to stop an event I use something like this:
def myRadio(self):
if len(self.radioLabel) > 4:
try:
skip()
except NameError:
return
···
On Tuesday, November 5, 2013 10:05:27 AM UTC-6, David Hughes wrote:
Operating System is Windows 8
Python is version 2.7.2
wxPython is version 2.9.5.0
According to the wxWidgets docs:
Event macros for events emitted by this class:
- EVT_CLOSE(func):
The dialog is being closed by the user
or programmatically (see wxWindow::Close ).
The user may generate this event clicking the close button
(typically the ‘X’ on the top-right of the title bar) if
it’s present (see the wxCLOSE_BOX
style) or by
clicking a button with the wxID_CANCEL
or wxID_OK
ids.
- EVT_INIT_DIALOG(func):
Process a wxEVT_INIT_DIALOG
event. See wxInitDialogEvent.
I can see the event when clicking the X on the dialog title bar but
not when clicking the Cancel and OK buttons with those IDs, if I
have read the description correctly. Can anyone confirm if there is
a problem with this?
-- Regards
David Hughes
Forestfield Software