fixed windows crashing on dialogs

This commit is contained in:
Samuel Walker 2024-06-20 18:50:01 -06:00
parent b1c0d9662d
commit 1f30ed512e
3 changed files with 6 additions and 3 deletions

View File

@ -170,6 +170,7 @@ def ftpDownload(ftp, file, stream):
#create tkinter window #create tkinter window
print("downloading file: "+file) print("downloading file: "+file)
dialog = CTk() dialog = CTk()
if os.name == 'posix':
dialog.attributes('-type', 'dialog') dialog.attributes('-type', 'dialog')
dialog.title("Downloading Modpack") dialog.title("Downloading Modpack")
set_appearance_mode("dark") set_appearance_mode("dark")

View File

@ -54,6 +54,7 @@ def main():
# GUI for selecting Prism instance path # GUI for selecting Prism instance path
app = CTk() app = CTk()
if os.name == 'posix':
app.attributes('-type', 'dialog') app.attributes('-type', 'dialog')
app.geometry("500x400") app.geometry("500x400")
app.title("FamilyCraft Launcher") app.title("FamilyCraft Launcher")

View File

@ -84,6 +84,7 @@ def main():
fileName = "modpack.mrpack" fileName = "modpack.mrpack"
app = CTk() app = CTk()
if os.name == 'posix':
app.attributes('-type', 'dialog') app.attributes('-type', 'dialog')
app.geometry('500x400') app.geometry('500x400')
app.title("FamilyCraft Launcher Upload Utility") app.title("FamilyCraft Launcher Upload Utility")