Re: [Pyobjc-dev] @selector(mymethod:) with pyobjc?
Brought to you by:
ronaldoussoren
From: whamoo <wh...@rk...> - 2005-01-20 17:37:17
|
On 20/gen/05, at 18:14, Ryan Wilcox wrote: > > > the miometodo function takes a sender parameter: > > def mioMetodo(self, sender): > #stuff > > Although I don't know what this is. > > Hope this helps, Hey this help a lot =) Sender is the object that launch the function, so in the case of NSMenuItem is the menuitem itself =) I can do that so: def myMethod(self, sender): print sender.title() #this get the title of the menuitem selected =) In this way i can differentiate myMethod in base of which menuitem has called it! =) Thanks again Whamoo www.rknet.it Powered by: - MacOsX - Gnu / Linux Debian Sarge - Amiga Os 3.9 - Milk |