Re: [Pyobjc-dev] How do I get NSTimer to call a python method?
Brought to you by:
ronaldoussoren
From: <bb...@ma...> - 2003-06-25 15:31:36
|
On Tuesday, Jun 24, 2003, at 16:25 US/Pacific, Kevin Marks wrote: > self.timer = > NSTimer.scheduledTimerWithTimeInterval_target_selector_userInfo_repeats > _(1.0/30.0, self, 'idle:',0,1) > .... > def idle_(self): ... > Do I need to make a selector call? Try changing.... def idle_(self): .... ... to ... def idle_(self, userInfo): .... "idle:" requires two arguments -- for a method invoked by a timer, the second argument will be the userInfo object passed to the timer creation method. b.bum |