示例#1
0
def main_loop(Model=UnittestProject):
    '''Run the main loop of the app.
    '''
    # Set up the root Tk context
    root = Tk()

    # Construct an empty window
    view = MainWindow(root)

    # Load the project model
    view.project = view.load_project(root, Model)

    # Run the main loop
    view.mainloop()
示例#2
0
#!/usr/bin/env python
# @author Jakub Mazurkiewicz

from view import MainWindow
import os

if __name__ == '__main__':
    os.chdir(os.path.dirname(__file__))

    window = MainWindow()
    window.mainloop()