Am Freitag, den 17.02.2006, 19:32 -0600 schrieb Angel Arturo Pérez Mtz: > I want to launch a module automatically after gtk.main() is been > executed. But I don't want to wait for an event generated an click. > > How can I get this?
Pretty easy: import gobject gobject.idle_add(<function you want to have called>) Now <function you want to have called> will be called, when ever the mainloop is idle (that is pretty often!). So you have to tell it, that you wan't it to be called only once - to do that, return FALSE from <function you want to have called>, else return TRUE. HTH Matthias -- Matthias Bläsing (GPG-Schlüsselkennung: A71B4BD5) ICQ: 84617206 AIM: linuxfun81 MSN: [EMAIL PROTECTED]
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
_______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
