Remove widget from Gtk viewport / scrolled window in dynamic GUI
问题 I am building a GUI (Python binding of GTK3) where one Gtk Scrolled Window (from Glade) can contain different treeviews. The program launches with an empty window and the first time around everything works with: self.scrolled_window.add_with_viewport(treeview) self.main_window.show_all() Edit: Picture of the test program (see source below): The second time around I get the following error: (main.py:15905): Gtk-CRITICAL **: gtk_scrolled_window_add_with_viewport: assertion 'gtk_bin_get_child