-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathRegSmart.py
27 lines (20 loc) · 877 Bytes
/
RegSmart.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
from Interface import *
try:
date = dt.datetime.now()
logfile = str(date)[0:10]
logging.basicConfig(filename='data/log/' + logfile + '.log', level=logging.DEBUG,
format='%(asctime)s - [%(levelname)s] --> %(message)s')
logging.info('[RegSmart] RegSmart Started', extra={'investigator': 'RegSmart'})
root = Tk()
root.withdraw()
root.title("RegSmart")
root.iconbitmap("data/img/icon.ico")
b = UserInterface(root)
root.protocol('WM_DELETE_WINDOW', b.confirm_quit)
b.center_window(root, 800, 450)
root.tk.call('encoding', 'system', 'utf-8')
root.mainloop()
logging.info('[RegSmart] Ended', extra={'investigator': 'RegSmart'})
except Exception as e:
print(str(e))
logging.error('[RegSmart] An error occurred', exc_info=True, extra={'investigator': 'RegSmart'})