Move GUI to Source folder to avoid conflicts

This commit is contained in:
Mike A. Trethewey
2020-02-27 01:10:49 -08:00
parent a256dc1ae3
commit 74f3e89547
33 changed files with 41 additions and 40 deletions

2
CLI.py
View File

@@ -13,7 +13,7 @@ from Rom import get_sprite_from_name
from Utils import is_bundled, close_console from Utils import is_bundled, close_console
from Fill import FillError from Fill import FillError
import classes.constants as CONST import source.classes.constants as CONST
class ArgumentDefaultsHelpFormatter(argparse.RawTextHelpFormatter): class ArgumentDefaultsHelpFormatter(argparse.RawTextHelpFormatter):

24
Gui.py
View File

@@ -7,18 +7,18 @@ from tkinter import Tk, Button, BOTTOM, TOP, StringVar, BooleanVar, X, BOTH, RIG
from argparse import Namespace from argparse import Namespace
from CLI import get_settings, get_args_priority from CLI import get_settings, get_args_priority
from DungeonRandomizer import parse_arguments from DungeonRandomizer import parse_arguments
from gui.adjust.overview import adjust_page from source.gui.adjust.overview import adjust_page
from gui.startinventory.overview import startinventory_page from source.gui.startinventory.overview import startinventory_page
from gui.custom.overview import custom_page from source.gui.custom.overview import custom_page
from gui.loadcliargs import loadcliargs, loadadjustargs from source.gui.loadcliargs import loadcliargs, loadadjustargs
from gui.randomize.item import item_page from source.gui.randomize.item import item_page
from gui.randomize.entrando import entrando_page from source.gui.randomize.entrando import entrando_page
from gui.randomize.enemizer import enemizer_page from source.gui.randomize.enemizer import enemizer_page
from gui.randomize.dungeon import dungeon_page from source.gui.randomize.dungeon import dungeon_page
from gui.randomize.multiworld import multiworld_page from source.gui.randomize.multiworld import multiworld_page
from gui.randomize.gameoptions import gameoptions_page from source.gui.randomize.gameoptions import gameoptions_page
from gui.randomize.generation import generation_page from source.gui.randomize.generation import generation_page
from gui.bottom import bottom_frame, create_guiargs from source.gui.bottom import bottom_frame, create_guiargs
from GuiUtils import set_icon from GuiUtils import set_icon
from Main import __version__ as ESVersion from Main import __version__ as ESVersion
from Rom import get_sprite_from_name from Rom import get_sprite_from_name

View File

@@ -9,7 +9,7 @@ from EntranceShuffle import connect_entrance
from Fill import FillError, fill_restrictive from Fill import FillError, fill_restrictive
from Items import ItemFactory from Items import ItemFactory
import classes.constants as CONST import source.classes.constants as CONST
#This file sets the item pools for various modes. Timed modes and triforce hunt are enforced first, and then extra items are specified per mode to fill in the remaining space. #This file sets the item pools for various modes. Timed modes and triforce hunt are enforced first, and then extra items are specified per mode to fill in the remaining space.

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

1
source/__init__.py Normal file
View File

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

View File

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

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

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

View File

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

View File

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

View File

@@ -1,8 +1,8 @@
from tkinter import ttk, filedialog, messagebox, IntVar, StringVar, Button, Checkbutton, Entry, Frame, Label, OptionMenu, E, W, LEFT, RIGHT, X, BOTTOM from tkinter import ttk, filedialog, messagebox, IntVar, StringVar, Button, Checkbutton, Entry, Frame, Label, OptionMenu, E, W, LEFT, RIGHT, X, BOTTOM
from AdjusterMain import adjust from AdjusterMain import adjust
from argparse import Namespace from argparse import Namespace
from classes.SpriteSelector import SpriteSelector from source.classes.SpriteSelector import SpriteSelector
import gui.widgets as widgets import source.gui.widgets as widgets
import json import json
import logging import logging
import os import os

View File

@@ -7,8 +7,8 @@ import random
from CLI import parse_arguments, get_settings from CLI import parse_arguments, get_settings
from Main import main from Main import main
from Utils import local_path, output_path, open_file from Utils import local_path, output_path, open_file
import classes.constants as CONST import source.classes.constants as CONST
import gui.widgets as widgets import source.gui.widgets as widgets
def bottom_frame(self, parent, args=None): def bottom_frame(self, parent, args=None):

View File

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

View File

@@ -1,9 +1,9 @@
from tkinter import ttk, StringVar, Entry, Frame, Label, N, E, W, LEFT, RIGHT, X, VERTICAL, Y from tkinter import ttk, StringVar, Entry, Frame, Label, N, E, W, LEFT, RIGHT, X, VERTICAL, Y
import gui.widgets as widgets import source.gui.widgets as widgets
import json import json
import os import os
import classes.constants as CONST import source.classes.constants as CONST
def custom_page(top,parent): def custom_page(top,parent):
# Custom Item Pool # Custom Item Pool

View File

@@ -1,7 +1,7 @@
from classes.SpriteSelector import SpriteSelector as spriteSelector from source.classes.SpriteSelector import SpriteSelector as spriteSelector
from gui.randomize.gameoptions import set_sprite from source.gui.randomize.gameoptions import set_sprite
from Rom import Sprite from Rom import Sprite
import classes.constants as CONST import source.classes.constants as CONST
def loadcliargs(gui, args, settings=None): def loadcliargs(gui, args, settings=None):
if args is not None: if args is not None:

View File

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

View File

@@ -1,5 +1,5 @@
from tkinter import ttk, IntVar, StringVar, Checkbutton, Frame, Label, OptionMenu, E, W, LEFT, RIGHT from tkinter import ttk, IntVar, StringVar, Checkbutton, Frame, Label, OptionMenu, E, W, LEFT, RIGHT
import gui.widgets as widgets import source.gui.widgets as widgets
import json import json
import os import os

View File

@@ -1,6 +1,6 @@
import os import os
from tkinter import ttk, filedialog, IntVar, StringVar, Button, Checkbutton, Entry, Frame, Label, LabelFrame, OptionMenu, N, E, W, LEFT, RIGHT, BOTTOM, X from tkinter import ttk, filedialog, IntVar, StringVar, Button, Checkbutton, Entry, Frame, Label, LabelFrame, OptionMenu, N, E, W, LEFT, RIGHT, BOTTOM, X
import gui.widgets as widgets import source.gui.widgets as widgets
import json import json
import os import os
import webbrowser import webbrowser

View File

@@ -1,5 +1,5 @@
from tkinter import ttk, IntVar, StringVar, Checkbutton, Frame, Label, OptionMenu, E, W, LEFT, RIGHT from tkinter import ttk, IntVar, StringVar, Checkbutton, Frame, Label, OptionMenu, E, W, LEFT, RIGHT
import gui.widgets as widgets import source.gui.widgets as widgets
import json import json
import os import os

View File

@@ -1,7 +1,7 @@
from tkinter import ttk, IntVar, StringVar, Button, Checkbutton, Entry, Frame, Label, OptionMenu, E, W, LEFT, RIGHT from tkinter import ttk, IntVar, StringVar, Button, Checkbutton, Entry, Frame, Label, OptionMenu, E, W, LEFT, RIGHT
from functools import partial from functools import partial
import classes.SpriteSelector as spriteSelector import source.classes.SpriteSelector as spriteSelector
import gui.widgets as widgets import source.gui.widgets as widgets
import json import json
import os import os

View File

@@ -1,6 +1,6 @@
import os import os
from tkinter import ttk, filedialog, IntVar, StringVar, Button, Checkbutton, Entry, Frame, Label, E, W, LEFT, RIGHT, X from tkinter import ttk, filedialog, IntVar, StringVar, Button, Checkbutton, Entry, Frame, Label, E, W, LEFT, RIGHT, X
import gui.widgets as widgets import source.gui.widgets as widgets
import json import json
import os import os

View File

@@ -1,5 +1,5 @@
from tkinter import ttk, IntVar, StringVar, Checkbutton, Frame, Label, OptionMenu, E, W, LEFT, RIGHT from tkinter import ttk, IntVar, StringVar, Checkbutton, Frame, Label, OptionMenu, E, W, LEFT, RIGHT
import gui.widgets as widgets import source.gui.widgets as widgets
import json import json
import os import os

View File

@@ -1,5 +1,5 @@
from tkinter import ttk, StringVar, Entry, Frame, Label, Spinbox, N, E, W, X, LEFT, RIGHT from tkinter import ttk, StringVar, Entry, Frame, Label, Spinbox, N, E, W, X, LEFT, RIGHT
import gui.widgets as widgets import source.gui.widgets as widgets
import json import json
import os import os

View File

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

View File

@@ -1,9 +1,9 @@
from tkinter import ttk, StringVar, Entry, Frame, Label, N, E, W, LEFT, RIGHT, X, VERTICAL, Y from tkinter import ttk, StringVar, Entry, Frame, Label, N, E, W, LEFT, RIGHT, X, VERTICAL, Y
import gui.widgets as widgets import source.gui.widgets as widgets
import json import json
import os import os
import classes.constants as CONST import source.classes.constants as CONST
def startinventory_page(top,parent): def startinventory_page(top,parent):
# Starting Inventory # Starting Inventory