As noted, the GTK window made with Glade contains a GTK VBox widget that contains all other application widgets (except for the menu, discussed below). When making this VBox widget with Glade, I gave it the following name: vbox1. (The widget's name is viewed/set in Glade by selecting it and looking at its "properties" in the Properties window.)
Here's the Python code that fetches the VBox from the imported glade file:
#reparent the vbox1 from glade to self.window
self.vbox1 = self.wTree.get_widget("vbox1")
self.reparent_loc(self.vbox1, self.window)
The first non-comment code line gets the specified GTK VBox
and assigns it to the
self.vbox1variable.
The second reparents the VBox from the GTK window made in
Glade to the Hildon Window made in Python that's named
self.windowwith the
reparent_loc()function.
That's it for reparenting! Let's take a look at importing the GTK menu made in Glade and setting it as the application's Hildon menu.