def __init__(self, _application):
     TreePlugin.__init__(self, _application)
     self.set_short_name("pictures")
     
     folder_image = 'elisa/skins/default_skin/pictures/folder.png'
     locations = self.get_config().get('locations')
     
     for data_loader in self.data_access:
         for location in locations:
             data_loader.load_location(location,
                                       item_filter=elisa.utils.misc.file_is_picture,
                                       folder_icon_path=folder_image,
                                       item_action=self.show_picture)
    def __init__(self, _application):
        TreePlugin.__init__(self, _application)
        self.set_short_name("pictures")

        folder_image = 'elisa/skins/default_skin/pictures/folder.png'
        locations = self.get_config().get('locations')

        for data_loader in self.data_access:
            for location in locations:
                data_loader.load_location(
                    location,
                    item_filter=elisa.utils.misc.file_is_picture,
                    folder_icon_path=folder_image,
                    item_action=self.show_picture)
Exemple #3
0
    def __init__(self, _application):
        TreePlugin.__init__(self, _application)
        self.set_short_name("videos")

        folder_image = 'elisa/skins/default_skin/pictures/folder.png'
        movie_image = 'elisa/skins/default_skin/pictures/movie.png'
        locations = self.get_config().get('locations')
        
        for data_loader in self.data_access:
            for location in locations:
                data_loader.load_location(location,
                                          item_filter=elisa.utils.misc.file_is_movie,
                                          folder_icon_path=folder_image,
                                          item_icon_path=movie_image,
                                          item_action=self.play_movie,
                                          #item_focus=self.focus_update,
                                          action_menu=self.add_action_menu)
Exemple #4
0
    def __init__(self, _application):
        TreePlugin.__init__(self, _application)
        self.set_short_name("videos")

        folder_image = "elisa/skins/default_skin/pictures/folder.png"
        movie_image = "elisa/skins/default_skin/pictures/movie.png"
        locations = self.get_config().get("locations")

        for data_loader in self.data_access:
            for location in locations:
                data_loader.load_location(
                    location,
                    item_filter=elisa.utils.misc.file_is_movie,
                    folder_icon_path=folder_image,
                    item_icon_path=movie_image,
                    item_action=self.play_movie,
                    # item_focus=self.focus_update,
                    action_menu=self.add_action_menu,
                )