Hello,

I begin my program with :

   gtk.threads_init()
   gtk.gdk.threads_enter()
   main()
   gtk.gdk.threads_leave()

and I've got a separate thread that insert text in a textview like this :

       buffer = self.textview.get_buffer()
       buffer.insert_at_cursor('\n'+line)
       self.textview.scroll_mark_onscreen(buffer.get_insert())

The problem is that the textview isn't always refreshed. I know it's a common problem but I didn't find any solutions in the archives.

Thanks,
Kttmm

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

Reply via email to