Ejemplo n.º 1
0
    def __init__(self):
        """
        Initialise the MovieList.

        Initialise the UI, apply custom settings not dealt with in Glade,
        restore configuration settings.
        """

        # load the UI elements
        self.initializeUI()

        # apply custom settings not provided in the glade file
        self.customiseRendering()
        self.customiseFilter()

        # get saved configuration settings and restore them
        self.restoreConfiguration()

        # add the io module, load in the data
        self.movieListIO = MovieListIO(self)
        if self.__filename:
            self.movieListIO.load()

        # get a reference to the main window itself and display the window
        self.window.show_all()