Compare commits

...

2 Commits

Author SHA1 Message Date
6f719740f2 Merged 2024-06-20 18:58:31 -06:00
1f30ed512e fixed windows crashing on dialogs 2024-06-20 18:50:01 -06:00
3 changed files with 6 additions and 3 deletions

View File

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

View File

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

View File

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