Looking for documentation tools

2009-10-01 Thread Esben von Buchwald
Hello. For documening my thesis project, i'm, looking for 2 things: A GUI tool that allows me to enter descriptions, arguments, return values etc, for each function, class, etc. in some forms and then generates and inserts the correct comment syntax, so pydoc can generate the documentation H

Re: Collection console output

2009-09-17 Thread Esben von Buchwald
MRAB wrote: Esben von Buchwald wrote: Hello Are there any simple ways to collect the data, python prints to the console when running an app? I'm doing som apps for S60 mobile phones and can't see the console, when the UI is running, but i'd like to collect the output, to loo

Collection console output

2009-09-16 Thread Esben von Buchwald
Hello Are there any simple ways to collect the data, python prints to the console when running an app? I'm doing som apps for S60 mobile phones and can't see the console, when the UI is running, but i'd like to collect the output, to look for eventual exceptions etc. Cant it be redirected

Re: Protecting against callbacks queuing up?

2009-08-28 Thread Esben von Buchwald
It seems to solve the problem. What I did: def contextDataHandler(self): self.contextdata.process_busy=True self.services.findServices() self.drawDisplay() self.contextdata.process_busy=False def doCallback(self): self.at.cancel() if self.

Re: Protecting against callbacks queuing up?

2009-08-27 Thread Esben von Buchwald
Hendrik van Rooyen wrote: Hmm - now I am really starting to fly by the seat of my pants - but it looks as if your problem is that your routine is basically being called faster than what it can do the processing. So what I would try is to define a global (you should really acquire a lock, bu

Re: Protecting against callbacks queuing up?

2009-08-27 Thread Esben von Buchwald
Dennis Lee Bieber wrote: The only other thing I could suggest is exactly what is done on: http://pys60.garage.maemo.org/doc/s60/node59.html Initialize a counter value to 0, then increment it in the callback, only doing REAL work every n calls. def doCallback(self):

Re: Protecting against callbacks queuing up?

2009-08-26 Thread Esben von Buchwald
Dennis Lee Bieber wrote: On Tue, 25 Aug 2009 15:21:16 +0200, Esben von Buchwald declaimed the following in gmane.comp.python.general: This is how the accelerometer is accessed http://pys60.garage.maemo.org/doc/s60/node59.html I found this called "after"... http://pys60.garage.mae

Re: Protecting against callbacks queuing up?

2009-08-26 Thread Esben von Buchwald
Hendrik van Rooyen wrote: would that be usable? Probably If so, how? This is a guess, for your device, but I suspect something along these lines: t = Ao_timer() cb = t.after(100,thing_that_does_the_work(with_its_arguments)) Lots of assumptions here - the 100 should give you a tenth of a s

Re: Protecting against callbacks queuing up?

2009-08-25 Thread Esben von Buchwald
Dennis Lee Bieber wrote: On Mon, 24 Aug 2009 17:32:23 +0200, Esben von Buchwald declaimed the following in gmane.comp.python.general: I'm new to python, what is an after function and an after call? Couldn't find excact answer on google...? Do you have a link to some docs?

Re: Protecting against callbacks queuing up?

2009-08-24 Thread Esben von Buchwald
Hendrik van Rooyen wrote: see if there is an "after" method somewhere. What you have to do is to "break the link" between the callback and the processing. Your code above is all in the callback "thread", despite the fact that you call another function to do the processing. So if you replace

Protecting against callbacks queuing up?

2009-08-23 Thread Esben von Buchwald
Hello I'm using Python for S60 1.9.7 on my Nokia phone. I've made a program that gets input from an accelerometer sensor, and then calculates some stuff and displays the result. The sensor framework API does a callback to a function defined by me, every time new data is available. The prob