From a0a205341b7b54a7b92e8068aa67074dc3ab6670 Mon Sep 17 00:00:00 2001 From: Claydough6 Date: Tue, 4 May 2021 23:44:31 -0400 Subject: [PATCH] Package can be installed with pip now --- resolution_gui/__init__.py | 7 +++---- resolution_gui/gui_main.py | 8 ++++---- resolution_gui/resolution_canvas.py | 2 +- resolution_gui/statement_frame.py | 2 +- setup.py | 2 +- 5 files changed, 10 insertions(+), 11 deletions(-) diff --git a/resolution_gui/__init__.py b/resolution_gui/__init__.py index a3af005..0aea55d 100644 --- a/resolution_gui/__init__.py +++ b/resolution_gui/__init__.py @@ -1,6 +1,5 @@ -from gui_main import ResolutionGUI +from .gui_main import ResolutionGUI # start up the app -if __name__ == "__main__": - app = ResolutionGUI() - app.start() +app = ResolutionGUI() +app.start() diff --git a/resolution_gui/gui_main.py b/resolution_gui/gui_main.py index 924f923..156e05b 100644 --- a/resolution_gui/gui_main.py +++ b/resolution_gui/gui_main.py @@ -3,10 +3,10 @@ from ttkthemes import ThemedTk from tkinter import filedialog -from resolution_canvas import ResolutionCanvas -from statement_frame import StatementFrame -from resolution_engine import ResolutionEngine -from info_window import InfoWindow +from .resolution_canvas import ResolutionCanvas +from .statement_frame import StatementFrame +from .resolution_engine import ResolutionEngine +from .info_window import InfoWindow class ResolutionGUI(): def __init__(self): diff --git a/resolution_gui/resolution_canvas.py b/resolution_gui/resolution_canvas.py index ffbbd7e..99d3f6c 100644 --- a/resolution_gui/resolution_canvas.py +++ b/resolution_gui/resolution_canvas.py @@ -1,7 +1,7 @@ from tkinter import * from tkinter import ttk -from clause_frame import ClauseFrame +from .clause_frame import ClauseFrame class ResolutionCanvas(Canvas): def __init__(self, master, app, **kwargs): diff --git a/resolution_gui/statement_frame.py b/resolution_gui/statement_frame.py index 6ae3c3c..5ff5879 100644 --- a/resolution_gui/statement_frame.py +++ b/resolution_gui/statement_frame.py @@ -1,7 +1,7 @@ from tkinter import * from tkinter import ttk -from edit_listbox import EditListbox +from .edit_listbox import EditListbox class StatementFrame(ttk.Frame): def __init__(self, master, app, **kwargs): diff --git a/setup.py b/setup.py index 58501c6..e146143 100644 --- a/setup.py +++ b/setup.py @@ -9,8 +9,8 @@ license="MIT", packages=["resolution_gui"], install_requires=[ - "tkinter", "ttkthemes", "pyprover", + "pyparsing", ], zip_safe=False)