def __init__(self, config, pathname):
     Menu.__init__(self, "", config)
     self.fullpath = pathname
     self.dirname, self.filename = os.path.split(pathname)
     self.fileroot, self.fileext = os.path.splitext(self.filename)
     self.title = self.config.decode_title_text(self.fileroot)
     self.detail_image = None
     self.playable = True
Example #2
0
 def __init__(self, config):
     Menu.__init__(self, "Dinoteeth Media Launcher", config)
     self.movies = Menu("Movies", config)
     self.tv = Menu("TV", config)
     self.photos = Menu("Photos", config)
     self.games = Menu("Games", config)
     self.paused = Menu("Paused...", config)
     for item in [self.movies, self.tv, self.photos, self.games, self.paused]:
         self.add_item(item)
     for i in range(50):
         self.tv.add_item(Menu("Entry #%d" % i, self.config))