-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGUI_DataExpander.py
More file actions
56 lines (37 loc) · 1.19 KB
/
GUI_DataExpander.py
File metadata and controls
56 lines (37 loc) · 1.19 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import json
import os
from pathlib import Path
import re
import struct
from tkinter import *
from tkinter.ttk import *
import tkinter.font as tkf
from tkinter.filedialog import askopenfilename
from tkinter.filedialog import asksaveasfilename
import MovelistParser
import ConfigReader
import time
from threading import Thread
class GUI_DataExpander:
def __init__(self, master:Tk, movelist:MovelistParser.Movelist=None):
self.master = master
self.movelist = movelist
master.title('SCUFFLE Data Expander')
master.iconbitmap(default='Data/icon.ico')
master.geometry('800x850')
self.frame = Label(master,text="TEST")
self.frame.grid()
self.working_movelist = self.movelist
#Add Moves (Mode 0)
move_frame = Frame(master)
val = StringVar()
move_quantity = Spinbox(move_frame,from_=0, to=20, textvariable=val, width=6, validate='all')
move_frame.grid(row=0, column=0)
move_quantity.grid()
#Add Attacks (Mode 1)
#Add Throws (Mode 2)
#Add Modifiers (Mode 3)
if __name__ == '__main__':
root = Tk()
my_gui = GUI_DataExpander(root)
root.mainloop()