Example #1
0
    def __init__(self, title, path):
        MenuItem.__init__(self, title)
        self.path = path

        for root, dirs, files in os.walk(path):
            for dir in dirs:
                self.add_child(DirectoryMenuItem(dir + "...", os.path.join(root, dir)))
            for file in files:
                self.add_child(FileMenuItem(file, file))
Example #2
0
 def __init__(self, title, filename):
     MenuItem.__init__(self, title)
     self.filename = filename
Example #3
0
 def __init__(self, title, plugin):
     MenuItem.__init__(self, title)
     self.plugin = plugin