-
Notifications
You must be signed in to change notification settings - Fork 19
/
main.py
33 lines (22 loc) · 643 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
"""程序入口文件"""
import os
from tkinter import Tk
import lib.global_variable as glv
from pages import win_login, win_splah
# Load global variable management module
glv.init_global_variable()
glv.set_variable("APP_NAME", "Application")
glv.set_variable("APP_PATH", os.path.dirname(__file__)) # 当前目录
glv.set_variable("DATA_DIR", "data")
class App(Tk):
"""Application Class"""
def __init__(self):
win_splah.Splah()
Tk.__init__(self)
# Login Window
win_login.Login(self)
self.mainloop()
if __name__ == "__main__":
App()