Re: [orca-list] time...
- From: Daniel Dalton <d dalton iinet net au>
- To: Willie Walker <William Walker Sun COM>
- Cc: orca list <orca-list gnome org>
- Subject: Re: [orca-list] time...
- Date: Sat, 17 May 2008 08:34:55 +1000 (EST)
Hi Will,
On Fri, 16 May 2008, Willie Walker wrote:
Hi Daniel:
See
http://www.pygtk.org/pygtk2reference/gobject-functions.html#function-gobject--timeout-add
Thanks, I will.
The basic pattern is this:
1) add the timeout (in milliseconds):
gobject.timeout_add(1000, myMethod)
2) write your method:
def myMethod():
<<<output braille>>>
return True
With the example above, myMethod will be called once a second. No need to do
a loop in myMethod since the timeout is basically doing the timed loop for
you.
Makes sense, but will it be interupted on another key press?
Thanks for your help,
Cheers,
Daniel.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]