Hello I run my (whole) gui in one thread. If i start the thread again (after i had it closed), the entry of the ComboBoxEntry will not shown (only the button to open the list - but the list is not visible). Same problem with the old Combo (nothing visible). Combobox (without Entry) works correct.
I add a example below. Close the first window within 3 seconds and wait until second combo get visible. (If you do not close the first window within 3 Seconds, the second box does not become visible until you close the first (but then you will see it without failure)). What's wrong ? Is this a bug ? Thanks martin I use: Win 2k gtk.2.4 pygtk 2.3.96 ------------------------------- import gtk import sys import threading import time class My_App (threading.Thread) : def __init__ (self) : threading.Thread.__init__ (self) def cb (self, widget) : gtk.main_quit () def run (self) : gtk.threads_enter() w = gtk.Window () w.connect("destroy", self.cb) liststore = gtk.ListStore(str) liststore.append (["text_a"]) liststore.append (["text_b"]) combobox = gtk.ComboBoxEntry(liststore, 0) ## combobox = gtk.ComboBox(liststore) ## works cell = gtk.CellRendererText() combobox.pack_start(cell, True) combobox.add_attribute(cell, 'text', 0) c = combobox w.add (c) w.show_all () gtk.main () gtk.threads_leave() def _test () : thread = My_App () thread.start () def _duo_test () : _test () time.sleep (3) _test () if __name__ == "__main__": # _test () _duo_test () _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/