Hi to all,

I'm writing an application with dinamic menu (NSMenu - NSMenuItem), but i've some problem with this function:
[[NSMenuItem alloc] initWithTitle:action:keyEquivalent:]

I want to pass to "action:" a function of my class, in objc i must use this code @selector(mioMetodo:)
In Python how to translate this?

menuitem = NSMenuItem.alloc().initWithTitle_action_keyEquivalent_(str(a), "Here the code" , "")

Thanks a lot =)


Whamoo www.rknet.it
Powered by:
- MacOsX
- Gnu / Linux Debian Sarge
- Amiga Os 3.9
- Milk
_______________________________________________
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to