Mamahita Sela ?????:
> (I am using 2.5.1, pygtk 2.10.6 on Linux x86)
> 
> This is my code:
> import threading
> import commands
> import gtk
> import gobject
> 
> gobject.threads_init()
I prefer gtk.gdk.threads_init()
...
> 
> 
> if __name__ == '__main__':
>    app = Main()
      gtk.gdk.threads_enter()  # !!!!!!!!!!!!!
>    gtk.main()
      gtk.gdk.threads_leave()  # !!!!!!!!!!!!!

For use with the GUI
gobject.idle_add(...
or
gtk.gdk.threads_enter()
# Your change to the GUI
gtk.gdk.threads_leave()

--
   Andrew Ivanov.

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to