This chapter explains how to import an application's user interface that was made with Glade into Python in order to make a UME/Hildon application. In particular, it covers:
How to import a Glade user interface definition file into Python
How to access objects defined in Glade and give them local Python names
How to reparent Glade widgets to the required Python Hildon Window
How to get a GTK Menu defined in Glade and set it as the Hildon Program menu in Python
Terminology: What's "reparenting"? The top level window in a UME application is - by definition - a Hildon Window. However, Glade can only create a GTK Window, not the Hildon Window you need. (When using Glade, you need a GTK Window as a top-level widget so that you can add other child widgets to it). To deal with this mismatch, you create a real Hildon Window in your Python and then "reparent" the GTK Window's direct children to it.