Re: [Pyobjc-dev] selector in pyobjc
Brought to you by:
ronaldoussoren
From: Ronald O. <ron...@ma...> - 2011-08-18 14:04:57
|
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 > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |