Hi,

I've created an Assistant. When I try to execute the following code:

class class_new_register_window:
        def __init__(self):
                global ui_icon
                global ui_icon_16x16
                
                self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
                self.window.set_title(_('Rejestracja'))
                self.window.set_icon_list(ui_icon_16x16, ui_icon)
                
                self.window.connect("delete_event", self.cb_window_delete_event)
                self.window.connect("destroy", self.cb_window_destroy)

                self.assistant = gtk.Assistant()
                
                self.page0_infolabel = gtk.Label(_("Long text here..."))
                self.page0_infolabel.set_line_wrap(True)

                self.assistant.append_page(self.page0_infolabel)
                self.assistant.set_page_title(self.assistant.get_nth_page(0),
_('Rejestracja'))
                
                self.page0_infolabel.show()
                self.assistant.show()
                self.window.add(self.assistant)


i get error:

Gtk-ERROR **: file gtkassistant.c: line 414 (compute_last_button_state):
assertion failed: (page_info)
aborting...


gtk ver 2.12.2 (value of variable gtk.ver)
pygtk 2.10.3 (value of variable gtk.pygtk_version)
gnome 2.16
gentoo linux


I realized that that error exists only when I try to show the label
(line self.page0_infolabel.show()). I realized also that putting
self.page0_infolabel.show() after self.assistant.show() results with
segmentation fault. It's a bug, isn't it?

-- 
m.
_______________________________________________
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/

Reply via email to