[Tutor] How to use g_timeout_add () function?
Lion Chen
chnlion79 at gmail.com
Fri Apr 6 16:17:15 CEST 2012
Hello all, i have a question:
when i check gtk_time_out in the gtk+2 reference, it said "
|gtk_timeout_add|has been deprecated since version 2.4 and should not be
used in newly-written code. Use |g_timeout_add()|instead."
but i don't know how tu use the g_timout_add() function:
my_id = g_timeout_add(500, myfunction())
or:
my_id = gtk.g_timeout_add(500, myfunction())
everytime i run the program, it prompted me a message like modules do
not have g_timeout_add() attribute.
so i still have to use gtk_timeout_add....
anybody help me?
Lion Chen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120406/6c9a04bd/attachment.html>
More information about the Tutor
mailing list