Merged
This commit is contained in:
commit
6f719740f2
14
Main.py
14
Main.py
@ -56,27 +56,29 @@ def main():
|
|||||||
app = CTk()
|
app = CTk()
|
||||||
if os.name == 'posix':
|
if os.name == 'posix':
|
||||||
app.attributes('-type', 'dialog')
|
app.attributes('-type', 'dialog')
|
||||||
app.geometry("500x400")
|
app.geometry("1280x720")
|
||||||
app.title("FamilyCraft Launcher")
|
app.title("FamilyCraft Launcher")
|
||||||
set_appearance_mode("dark")
|
set_appearance_mode("dark")
|
||||||
set_default_color_theme("blue")
|
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
|
# Tabs to seperate options from launching the game
|
||||||
|
|
||||||
guitabs = CTkTabview(master=app, bg_color="transparent", corner_radius=20)
|
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("Launcher")
|
||||||
guitabs.add("Options")
|
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")
|
#root.title("Select Prism Instance Path")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user