I’m not sure you can. The TextEntryDialog is a light wrapper around an OS level dialog (I think), which doesn’t offer much in customization. You should just recreate the dialog by creating your own subclass of wx.Dialog.
Mike
···
On Thursday, July 26, 2012 10:23:53 AM UTC-5, Daniel Finder wrote:
How i can bind OnON method with clicking on OK button in this dialog? I want to add validation in OnOK method and in case when input text is wrong - show error dialog (new dialog) and not close (!!!) this dialog
Take a look at the window list you get from self.GetChildren() to find the widgets you want access too. In the case of the button it is probably using the stock ID so you can also use self.FindWindowById to get it.
···
On 7/26/12 9:10 AM, Mike Driscoll wrote:
On Thursday, July 26, 2012 10:23:53 AM UTC-5, Daniel Finder wrote:
How i can bind OnON method with clicking on OK button in this
dialog? I want to add validation in OnOK method and in case when
input text is wrong - show error dialog (new dialog) and not close
(!!!) this dialog
I'm not sure you can. The TextEntryDialog is a light wrapper around an
OS level dialog (I think), which doesn't offer much in customization.
How i can bind OnON method with clicking on OK button in this
dialog? I want to add validation in OnOK method and in case when
input text is wrong - show error dialog (new dialog) and not close
(!!!) this dialog
I’m not sure you can. The TextEntryDialog is a light wrapper around an
OS level dialog (I think), which doesn’t offer much in customization.
In this case it is a generic dialog.
Take a look at the window list you get from self.GetChildren() to find
the widgets you want access too. In the case of the button it is
probably using the stock ID so you can also use self.FindWindowById to
get it.