Getting the menu and making it a Hildon Menu

In Hildon, you create a GTK menu and add it to the Hildon Program with the set_common_menu(GTK.menu)function, as mentioned previously.

The following Python code shows how to get the imported the GTK menu that's named menu1, assign it to self.menuGlade, and then set the Hildon Program to use this as its common menu.

        #get menu from glade and reparent as common menu in hildon program
        self.menuGlade = self.wTree.get_widget("menu1")
        self.program.set_common_menu(self.menuGlade)