Move everything out of work area

Move stuff to a throwaway tab for now
Create packages for eventual destinations of stuff
This commit is contained in:
Mike A. Trethewey
2020-02-08 10:17:55 -08:00
parent ce1b28e3bd
commit 98c7ee02f2
6 changed files with 18 additions and 11 deletions

24
Gui.py
View File

@@ -28,9 +28,11 @@ def guiMain(args=None):
randomizerWindow = ttk.Frame(notebook)
adjustWindow = ttk.Frame(notebook)
customWindow = ttk.Frame(notebook)
sortWindow = ttk.Frame(notebook)
notebook.add(randomizerWindow, text='Randomize')
notebook.add(adjustWindow, text='Adjust')
notebook.add(customWindow, text='Custom')
notebook.add(sortWindow, text='SORT')
notebook.pack()
# Shared Controls
@@ -55,7 +57,7 @@ def guiMain(args=None):
# randomizer controls
topFrame = Frame(randomizerWindow)
topFrame = Frame(sortWindow)
rightHalfFrame = Frame(topFrame)
checkBoxFrame = Frame(rightHalfFrame)
@@ -338,7 +340,7 @@ def guiMain(args=None):
accessibilityFrame.pack(expand=True, anchor=E)
algorithmFrame.pack(expand=True, anchor=E)
enemizerFrame = LabelFrame(randomizerWindow, text="Enemizer", padx=5, pady=2)
enemizerFrame = LabelFrame(sortWindow, text="Enemizer", padx=5, pady=2)
enemizerFrame.columnconfigure(0, weight=1)
enemizerFrame.columnconfigure(1, weight=1)
enemizerFrame.columnconfigure(2, weight=1)
@@ -400,18 +402,18 @@ def guiMain(args=None):
bottomFrame = Frame(randomizerWindow, pady=5)
worldLabel = Label(bottomFrame, text='Worlds')
worldLabel = Label(sortWindow, text='Worlds')
worldVar = StringVar()
worldSpinbox = Spinbox(bottomFrame, from_=1, to=100, width=5, textvariable=worldVar)
namesLabel = Label(bottomFrame, text='Player names')
worldSpinbox = Spinbox(sortWindow, from_=1, to=100, width=5, textvariable=worldVar)
namesLabel = Label(sortWindow, text='Player names')
namesVar = StringVar()
namesEntry = Entry(bottomFrame, textvariable=namesVar)
seedLabel = Label(bottomFrame, text='Seed #')
namesEntry = Entry(sortWindow, textvariable=namesVar)
seedLabel = Label(farBottomFrame, text='Seed #')
seedVar = StringVar()
seedEntry = Entry(bottomFrame, width=15, textvariable=seedVar)
countLabel = Label(bottomFrame, text='Count')
seedEntry = Entry(farBottomFrame, width=15, textvariable=seedVar)
countLabel = Label(farBottomFrame, text='Count')
countVar = StringVar()
countSpinbox = Spinbox(bottomFrame, from_=1, to=100, width=5, textvariable=countVar)
countSpinbox = Spinbox(farBottomFrame, from_=1, to=100, width=5, textvariable=countVar)
def generateRom():
guiargs = Namespace()
@@ -491,7 +493,7 @@ def guiMain(args=None):
else:
messagebox.showinfo(title="Success", message="Rom patched successfully")
generateButton = Button(bottomFrame, text='Generate Patched Rom', command=generateRom)
generateButton = Button(farBottomFrame, text='Generate Patched Rom', command=generateRom)
worldLabel.pack(side=LEFT)
worldSpinbox.pack(side=LEFT)

1
gui/__init__.py Normal file
View File

@@ -0,0 +1 @@
# do nothing, just exist to make "gui" package

1
gui/about/__init__.py Normal file
View File

@@ -0,0 +1 @@
# do nothing, just exist to make "gui.about" package

1
gui/adjust/__init__.py Normal file
View File

@@ -0,0 +1 @@
# do nothing, just exist to make "gui.adjust" package

1
gui/custom/__init__.py Normal file
View File

@@ -0,0 +1 @@
# do nothing, just exist to make "gui.custom" package

View File

@@ -0,0 +1 @@
# do nothing, just exist to make "gui.randomize" package