Merge pull request #136 from tcprescott/patch-1

remove hard requirement of tkinter when using CLI
This commit is contained in:
aerinon
2023-01-09 08:19:44 -07:00
committed by GitHub

View File

@@ -1,6 +1,4 @@
import importlib.util import importlib.util
import webbrowser
from tkinter import Tk, Label, Button, Frame
def check_requirements(console=False): def check_requirements(console=False):
@@ -26,6 +24,9 @@ def check_requirements(console=False):
logger.error('See the step about "Installing Platform-specific dependencies":') logger.error('See the step about "Installing Platform-specific dependencies":')
logger.error('https://github.com/aerinon/ALttPDoorRandomizer/blob/DoorDev/docs/BUILDING.md') logger.error('https://github.com/aerinon/ALttPDoorRandomizer/blob/DoorDev/docs/BUILDING.md')
else: else:
import webbrowser
from tkinter import Tk, Label, Button, Frame
master = Tk() master = Tk()
master.title('Error') master.title('Error')
frame = Frame(master) frame = Frame(master)