Hello, The problem is that I cannot switch the pages clicking the mouse button. I have noticed this problem on MS Windows but it also appears on Linux system. See attached code sample.
Please tell me, is this a pygtk problem or is it necessary to set_visible_window(True) in this case. Best regards, Jacek Rembisz
import gtk def does_not_work_on_mswin(): topwidget = gtk.Window() topwidget.set_size_request(200, 150) place = gtk.EventBox() place.set_visible_window(False) topwidget.add(place) n = gtk.Notebook() n.append_page(gtk.Button()) n.append_page(gtk.Button()) place.add(n) topwidget.show_all() gtk.main() def does_not_work_on_linux_too(): topwidget = gtk.Window() topwidget.set_size_request(200, 150) n1 = gtk.Notebook() topwidget.add(n1) place = gtk.EventBox() place.set_visible_window(False) n1.append_page(place) n1.append_page(gtk.Button()) n = gtk.Notebook() n.append_page(gtk.Button()) n.append_page(gtk.Button()) place.add(n) topwidget.show_all() gtk.main() does_not_work_on_linux_too()
_______________________________________________ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/