Re: C++ button events

Dietmar Schwertberger <[email protected]> Mon, 1 Jul 2019 19:30:11 +0200
Newsgroups gmane.comp.python.wxglade
Message-ID <[email protected]>
On 01.07.2019 19:25, Igor Korot wrote:
> Yes, the best way is not to connect with IDs and use wxID_AMY
> and use Bind() just like in python.
>
> However generating the Bind() code in python might be harder.
> I don't know about python but in C++ you can bind to any object
> and use "event sink" parameter to set the appropriate
> handler.
>
Well, for Python the dynamic binding is being used already.

For C++, a workaround could be to enter Bind(...) into the "Code to be 
inserted after" property.

Regards,

Dietmar