There is own dialogue which is inherited from wx.Dialog.
There is one button:
Why, when I close the dialog through "X", then the return code is wx.ID_OK? Shouldn't I get wx.ID_CANCEL?
There is one button:
button_ok = wx.Button (self, wx.ID_OK, "OK")Buttons with identifier wx.ID_CANCEL no.
Why, when I close the dialog through "X", then the return code is wx.ID_OK? Shouldn't I get wx.ID_CANCEL?