[IronPython] Creating .NET events in IronPython

Dan Eloff dan.eloff at gmail.com
Wed Apr 16 02:54:49 CEST 2008


Thanks, Tutorial/pyevent.py was what I've been looking for.

-Dan

On Tue, Apr 15, 2008 at 4:17 PM, Curt Hagenlocher <curt at hagenlocher.org> wrote:
> On Tue, Apr 15, 2008 at 1:58 PM, Dan Eloff <dan.eloff at gmail.com> wrote:
>  > In C# you can create an event:
>  >
>  > public event EventHandler<MouseWheelEventArgs> MouseScroll;
>  >
>  > And then you can add event handlers normally using +=, but how do you
>  > could you create MouseScroll from IronPython?
>
>  Have you looked at Tutorial/pyevent.py?
>
>  If the classes defined therein don't meet your needs, maybe you could
>  provide a specific example for how you intend to use the event.
>
>  --
>  Curt Hagenlocher
>  curt at hagenlocher.org
>  _______________________________________________
>  Users mailing list
>  Users at lists.ironpython.com
>  http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>



More information about the Ironpython-users mailing list