This commit is contained in:
Samuel Walker 2024-06-20 18:58:31 -06:00
commit 6f719740f2

14
Main.py
View File

@ -56,27 +56,29 @@ def main():
app = CTk()
if os.name == 'posix':
app.attributes('-type', 'dialog')
app.geometry("500x400")
app.geometry("1280x720")
app.title("FamilyCraft Launcher")
set_appearance_mode("dark")
set_default_color_theme("blue")
#Title image
titleimage = Image.open(Backend.resource_path("Title.png"))
titlelabel = CTkLabel(master=app, text="", image=CTkImage(titleimage, size=(700, 250)))
titlelabel.pack(expand=True, padx=0, pady=0)
# Tabs to seperate options from launching the game
guitabs = CTkTabview(master=app, bg_color="transparent", corner_radius=20)
guitabs.pack(expand=True, fill='x', side="bottom", padx=0, pady=(20,0))
guitabs.pack(expand=True, fill='both', side="bottom", padx=0, pady=(0))
guitabs.add("Launcher")
guitabs.add("Options")
#Title image
titleimage = Image.open(Backend.resource_path("Title.png"))
titlelabel = CTkLabel(master=app, text="", image=CTkImage(titleimage, size=(400, 150)))
titlelabel.pack(expand=True, padx=0, pady=0)
#root.title("Select Prism Instance Path")