Esempio n. 1
0
def main():
    args = parse_args()  # Read the command-line arguments

    if args.master_csv_path and args.lto_csv_path:  # If there is an argument,
        ltocheck_cli.check(args)  # run the command-line version
    else:
        gui.vp_start_gui()  # otherwise run the GUI version
Esempio n. 2
0
try:
    import Tkinter as tk
except ImportError:
    import tkinter as tk

try:
    import ttk
    py3 = False
except ImportError:
    import tkinter.ttk as ttk
    py3 = True


def init(top, gui, *args, **kwargs):
    global w, top_level, root
    w = gui
    top_level = top
    root = top


def destroy_window():
    # Function which closes the window.
    global top_level
    top_level.destroy()
    top_level = None


if __name__ == '__main__':
    import gui
    gui.vp_start_gui()
import functions as fnc
import gui

if __name__ == "__main__":
    player_name_list = fnc.load_json()
    gui.vp_start_gui(player_name_list)
    fnc.save_json()