[IronPython] how to work with delegates in IronPython
Michael Foord
fuzzyman at voidspace.org.uk
Sun May 31 23:51:54 CEST 2009
Vadim Khaskel wrote:
> Hello everybody,
>
> Could somebody help to setup simple delegate in IronPython.
>
> I just need to generate event when list structure gets filled with data,
The standard technique is:
# check delegate signature
def function(sender, event):
# do something
instance.Event += function
What is the list event you want to hook up to?
Thanks
Michael Foord
>
> and update GUI element.
>
> thanks a lot,
>
> V.
>
> ------------------------------------------------------------------------
> Hotmail® has a new way to see what's up with your friends. Check it
> out.
> <http://windowslive.com/Tutorial/Hotmail/WhatsNew?ocid=TXT_TAGLM_WL_HM_Tutorial_WhatsNew1_052009>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog
More information about the Ironpython-users
mailing list