Re: [orca-list] time...
- From: Willie Walker <William Walker Sun COM>
- To: Daniel Dalton <d dalton iinet net au>
- Cc: orca list <orca-list gnome org>
- Subject: Re: [orca-list] time...
- Date: Fri, 16 May 2008 20:05:11 -0400
Hi Daniel:
How the timeout is added and removed is up to you.
Will
Daniel Dalton wrote:
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]