Creating the Hildon Program and Hildon Window

Here's the top of the GladeTestAppclass, showing the beginning of its constructor.

class GladeTestApp():
    """pygtk-glade-hildon demo project"""


    def __init__(self):


        #make the hildon program
        self.program = hildon.Program()
        self.program.__init__()
        
        #make the hildon window and add to program
        self.window = hildon.Window()
        self.window.set_title("PyGlade")
        self.program.add_window(self.window

As you can see, the Hildon Program is created and assigned to self.program. And, the Hildon Window is created and assigned to self.window. Pretty straightforward.

Next, we'll import the .glade file.