예제 #1
0
파일: menu.py 프로젝트: dderichs/piradio
    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))
예제 #2
0
파일: menu.py 프로젝트: dderichs/piradio
 def __init__(self, title, filename):
     MenuItem.__init__(self, title)
     self.filename = filename
예제 #3
0
파일: menu.py 프로젝트: dderichs/piradio
 def __init__(self, title, plugin):
     MenuItem.__init__(self, title)
     self.plugin = plugin