[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Google
  Web www.spinics.net

glib.timeout_add doesn't works well



 
-----Messaggio originale-----
Da: kususe@xxxxxxxxxxxx
Inviato il: 27 Feb 2012 - 09:00
A: gtk-list@xxxxxxxxx


Hello to everybody.
want to use glib.timeout_add(i,f) in a python script.
I have a code like this:
 
if (condition):
          glib.timeout_add(i,f)
 
def f:

        (...)
        i = (....)
        (condition)
        return True

Even the value of "i" is different each time I call "f", glib.timeout_add(i,f) call "f" always with the same value of "i".


Suggestions?

Thanks in advance,

 


-------------------------------------------------------------------------------
Valore legale alle tue mail
InterfreePEC - la tua Posta Elettronica Certificata
http://pec.interfree.it
-------------------------------------------------------------------------------
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[GIMP Users]     [Yosemite News]    [Yosemite Photos]    [Gimp's Home]     [Steve's Art]

Add to Google Powered by Linux