-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.py
More file actions
38 lines (33 loc) · 944 Bytes
/
Copy pathmain.py
File metadata and controls
38 lines (33 loc) · 944 Bytes
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
34
35
36
37
38
"""
author: Stuart Taylor
"""
import config
import xml.etree.ElementTree as ET
import skill as SK
import frames as FR
import tkinter as TK
from tkinter import ttk
import os
def skillreset(event):
config.resetting=True
config.control.skillreset()
config.resetting=False
'''
add in an update to ctrl to fix the screen when reset
'''
root = TK.Tk()
root.title('Dn Sim: a Dragon Nest skill simulator.')
#control frame
config.control = FR.ControlFrame(root)
config.control.grid(column=0,row=0,sticky=TK.N+TK.W+TK.E)
config.updatelist['control'] = config.control.update
root.bind('<Control-Key-r>',skillreset)
#frame for skill boxes
config.skillpane = TK.Frame(root)
config.skillpane.grid(column=1,row=0,sticky='nsew')
#config.updatelist['skills']=config.skillpane.update
#skill description frame
config.descpane = FR.SkillDescFrame(root)
config.descpane.grid(column=2,row=0)
config.updatelist['desc']=config.descpane.update
root.mainloop()