Re: selector in pyobjc
Ronald Oussoren <[email protected]>
| Newsgroups | gmane.comp.python.pyobjc.devel |
|---|---|
| Message-ID | <[email protected]> |
On 10 Aug, 2011, at 8:56, Jair Gaxiola wrote: > Hello, > > Try to translate the following code to PyObjC > (https://github.com/shpakovski/Popup/blob/master/Popup/MenubarController.m), > but I have a question about how to translate the line number 20 of the > selector > > _statusItemView.action = @ selector (togglePanel:); > > Does not work with > > statusItemView.action (selector (togglePanel)) _statusItemView.setAction_(b'togglePanel') Selectors are byte-strings (the 'b' prefix is only necessary when you use Python 3.x) Ronald > > Thanks > > -- > SIN ETIQUETAS.[ PUNTO ] > http://flavors.me/jyr > http://pythoncocoa.com > http://opentumblr.com > > ------------------------------------------------------------------------------ > uberSVN's rich system and user administration capabilities and model > configuration take the hassle out of deploying and managing Subversion and > the tools developers use with it. Learn more about uberSVN and get a free > download at: http://p.sf.net/sfu/wandisco-dev2dev > _______________________________________________ > Pyobjc-dev mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 _______________________________________________ Pyobjc-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyobjc-dev
smime.p7s
(application/pkcs7-signature, 2.2 KB) - not displayed