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 22:25:17 +1000 (EST)
Hi Will:
I'll look at the page you mentioned before.
Thanks for all your help!
On Fri, 16 May 2008, Willie Walker wrote:
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.
--
Daniel Dalton
http://members.iinet.net.au/~ddalton/
<d dalton iinet net au>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]