from gtkmvc.view import View import os.path GLADE_NAME = "example.glade" GLADE_PATH = "./glade" GLADE = os.path.join(GLADE_PATH, GLADE_NAME) class ExampleView (View): """The application view. Contains only the main window1 tree.""" def __init__(self, controller): """Contructor, takes the controller instance to perform registration""" View.__init__(self, controller, GLADE, "window1") return pass # end of class
Global variables named GLADE* identify the Glade File to be used when loading the GUI representation generated by Glade.
Class ExampleView extends the generic View class, which performs most of the job, as described above.