Move GUI to Source folder to avoid conflicts
This commit is contained in:
2
CLI.py
2
CLI.py
@@ -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
24
Gui.py
@@ -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
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
# do nothing, just exist to make "classes" package
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
# do nothing, just exist to make "gui" package
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
# do nothing, just exist to make "gui.about" package
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
# do nothing, just exist to make "gui.adjust" package
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
# do nothing, just exist to make "gui.custom" package
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
# do nothing, just exist to make "gui.randomize" package
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
# do nothing, just exist to make "gui.startinventory" package
|
|
||||||
1
source/__init__.py
Normal file
1
source/__init__.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
# do nothing, just exist to make "source" package
|
||||||
1
source/classes/__init__.py
Normal file
1
source/classes/__init__.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
# do nothing, just exist to make "source.classes" package
|
||||||
1
source/gui/__init__.py
Normal file
1
source/gui/__init__.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
# do nothing, just exist to make "source.gui" package
|
||||||
1
source/gui/about/__init__.py
Normal file
1
source/gui/about/__init__.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
# do nothing, just exist to make "source.gui.about" package
|
||||||
1
source/gui/adjust/__init__.py
Normal file
1
source/gui/adjust/__init__.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
# do nothing, just exist to make "source.gui.adjust" package
|
||||||
@@ -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
|
||||||
@@ -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):
|
||||||
1
source/gui/custom/__init__.py
Normal file
1
source/gui/custom/__init__.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
# do nothing, just exist to make "source.gui.custom" package
|
||||||
@@ -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
|
||||||
@@ -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:
|
||||||
1
source/gui/randomize/__init__.py
Normal file
1
source/gui/randomize/__init__.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
# do nothing, just exist to make "source.gui.randomize" package
|
||||||
@@ -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
|
||||||
|
|
||||||
@@ -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
|
||||||
@@ -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
|
||||||
|
|
||||||
@@ -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
|
||||||
|
|
||||||
@@ -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
|
||||||
|
|
||||||
@@ -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
|
||||||
|
|
||||||
@@ -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
|
||||||
|
|
||||||
1
source/gui/startinventory/__init__.py
Normal file
1
source/gui/startinventory/__init__.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
# do nothing, just exist to make "source.gui.startinventory" package
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user