Esempio n. 1
0
def main():
    import os.path
    import os
    from filestorage import FileStorage, recognizeFiles
    testGUI = Tk()
    testGUI.fileStorage = FileStorage()
    testGUI.timeFrame = TimeFrame(testGUI)
    testingDir = os.path.join(os.getcwd(), "TestingFiles")
    files = recognizeFiles([os.path.join(testingDir, file) for file in os.listdir(testingDir)])
    testGUI.fileStorage.addFiles(files)
    testGUI.fileStorage.tag(files[1][1])
    testGUI.showtracks = ShowTracks(testGUI, files[1], files[1][1])
    testGUI.showtracks.grid()
    testGUI.showtracks.controlled = True
    testGUI.wm_withdraw()
    testGUI.mainloop()
Esempio n. 2
0
def main():
    "most probably does not work"
    from filestorage import FileStorage
    import os.path
    import os
    testGUI = Tk()
    testGUI.fileStorage = FileStorage()
    testingDir = os.path.join(os.getcwd(), "TestingFiles")
    from filestorage import recognizeFiles
    testGUI.fileStorage.addFiles(recognizeFiles([os.path.join(testingDir, file) for file in
                                                 os.listdir(testingDir)]))
    controller = Controller(testGUI)
    controller.grid()
    controller.controlFun()
    controller.saveToFrame.saveToVar.set(os.path.join(os.getcwd(), "Results.txt"))
    controller.saveFun()
    testGUI.mainloop()
Esempio n. 3
0
def main():
    "most probably does not work"
    from filestorage import FileStorage
    import os.path
    import os
    testGUI = Tk()
    testGUI.fileStorage = FileStorage()
    testingDir = os.path.join(os.getcwd(), "TestingFiles")
    from filestorage import recognizeFiles
    testGUI.fileStorage.addFiles(recognizeFiles([os.path.join(testingDir, file) for file in
                                                 os.listdir(testingDir)]))
    controller = Controller(testGUI)
    controller.grid()
    controller.controlFun()
    controller.saveToFrame.saveToVar.set(os.path.join(os.getcwd(), "Results.txt"))
    controller.saveFun()
    testGUI.mainloop()
Esempio n. 4
0
def main():
    import os.path
    import os
    from filestorage import FileStorage, recognizeFiles
    testGUI = Tk()
    testGUI.fileStorage = FileStorage()
    testGUI.timeFrame = TimeFrame(testGUI)
    testingDir = os.path.join(os.getcwd(), "TestingFiles")
    files = recognizeFiles(
        [os.path.join(testingDir, file) for file in os.listdir(testingDir)])
    testGUI.fileStorage.addFiles(files)
    testGUI.fileStorage.tag(files[1][1])
    testGUI.showtracks = ShowTracks(testGUI, files[1], files[1][1])
    testGUI.showtracks.grid()
    testGUI.showtracks.controlled = True
    testGUI.wm_withdraw()
    testGUI.mainloop()