Esempio n. 1
0
    def __init__(self):
        ImageTable.__init__(self, self.number_of_rows, self.number_of_columns,
                            self.row_padding, self.column_padding,
                            self.icon_width, self.icon_height)

        self.create_image_dict()
        self.create_button_list()

        # Pack the button list into the table
        self.attach_buttons_to_table(self.button_list)
Esempio n. 2
0
    def __init__(self):
        ImageTable.__init__(
            self, self.number_of_rows, self.number_of_columns,
            self.row_padding, self.column_padding,
            self.icon_width, self.icon_height
        )

        self.create_image_dict()
        self.create_button_list()

        # Pack the button list into the table
        self.attach_buttons_to_table(self.button_list)
Esempio n. 3
0
    def __init__(self):
        ImageTable.__init__(self, self.number_of_rows, self.number_of_columns,
                            self.row_padding, self.column_padding,
                            self.icon_width, self.icon_height)

        # Data structure of the wallpapers
        # self.wallpapers = {
        #   image_name: {
        #       'path': path_to_image,
        #       'selected': False,
        #       'unlocked': True,
        #       'button': GtkButton
        #   }
        # }

        # We also have a button_list to determine the order of the buttons
        self.button_list = []
        self.create_wallpaper_dict()

        # Add the buttons to self.button_list
        self.order_packing_of_wallpapers()
        self.attach_buttons_to_table(self.button_list)
    def __init__(self):
        ImageTable.__init__(
            self, self.number_of_rows, self.number_of_columns,
            self.row_padding, self.column_padding,
            self.icon_width, self.icon_height
        )

        # Data structure of the wallpapers
        # self.wallpapers = {
        #   image_name: {
        #       'path': path_to_image,
        #       'selected': False,
        #       'unlocked': True,
        #       'button': GtkButton
        #   }
        # }

        # We also have a button_list to determine the order of the buttons
        self.button_list = []
        self.create_wallpaper_dict()

        # Add the buttons to self.button_list
        self.order_packing_of_wallpapers()
        self.attach_buttons_to_table(self.button_list)