Re: [IronPython] Issues with methods as event handlers?

2006-02-03 Thread Giles Thomas
> > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Giles Thomas > Sent: Wednesday, February 01, 2006 11:10 AM > To: Discussion of IronPython > Subject: [IronPython] Issues with methods as event handlers? > > Hi all, > &

Re: [IronPython] Issues with methods as event handlers?

2006-02-02 Thread Dino Viehland
. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Giles Thomas Sent: Wednesday, February 01, 2006 11:10 AM To: Discussion of IronPython Subject: [IronPython] Issues with methods as event handlers? Hi all, When we use bound methods as Windows Forms event handle

[IronPython] Issues with methods as event handlers?

2006-02-02 Thread Giles Thomas
Hi all, When we use bound methods as Windows Forms event handlers, we can't detach them. Functions work OK. To see the problem, run up the attached button_method.py using IronPythonConsole; if you click on the "Trigger" button, you'll see a log message in the console saying that the trigger

Re: [IronPython] Issues with methods as event handlers?

2006-02-02 Thread Giles Thomas
Hi all, I attach an example of a workaround for the problem. Cheers, Giles -- Giles Thomas Resolver Systems [EMAIL PROTECTED] We're hiring! http://www.resolversystems.com/jobs/ Giles Thomas wrote: Hi all, When we use bound methods as Windows Forms event handlers, we can't detach them. Fu