Hello,
I had written a code in which it will remove the previous page and load the
next page.
I have done following:


--  def __init__(self, gnowser_path):

        #self.active_button =
''

        self.formXML = gtk.glade.XML('form.glade', root=None)
        self.table = self.formXML.get_widget('viewframe')
        self.viewport_holder = ' '
        formdict = {'on_default_clicked':self.default_action,
'on_neighbour_clicked':self.neighbour_action,'on_version_clicked':self.version_action}
        self.formXML.signal_autoconnect(formdict)
        self.viewport = self.formXML.get_widget('viewbox') // viewbox is
GTKVBox

 def default_action(self, widget):
        """Called on the click of click of default in the
frame.

        """

        self.viewport.remove(self.viewport_holder)
        self.viewport_holder.unparent()

        self.defaultView()





It gives me warning as :
 GtkWarning: gtk_container_remove: assertion `GTK_IS_TOOLBAR (container) ||
widget->parent == GTK_WIDGET (container)' failed

 self.viewport.remove(self.viewport_holder)



Can anyone tell me how to solve this?




Ganesh Gajare(Dragger)
Be FOSSERS, use GNU/Linux
_______________________________________________
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