Custom wxDialog returning arbitrary ID's

I’m writing a derived wx.Dialog that can return custom button ID’s
of

custom buttons. That is, it won't be restricted to the _very_

short list

of predefined button ID's such as  wx.ID_OK, wx.ID_CANCEL, etc.

The wxWidgets wxEvtHandler info did not help at all.

Any ideas on how to set the ID return value ?

Thanks In Advance (TIA),

Ray

Hi,

···

On Sat, Sep 18, 2010 at 12:05 PM, Ray Pasco <pascor@verizon.net> wrote:

I'm writing a derived wx.Dialog that can return custom button ID's of
custom buttons. That is, it won't be restricted to the _very_ short list
of predefined button ID's such as wx.ID_OK, wx.ID_CANCEL, etc.

The wxWidgets wxEvtHandler info did not help at all.
Any ideas on how to set the ID return value ?

Dialog.EndModal(SOME_ID)

Cody

Dialog.EndModal(SOME_ID)

Cody

Thanks. That is :

    self.EndModal( {int} )

from within the Dialog subclass definition.

Ray