Compare commits
No commits in common. "bd53d50150fcf91f277fbd87174d156981e7529f" and "45e9c791b5840d79233effb8856d102981a9af53" have entirely different histories.
bd53d50150
...
45e9c791b5
BIN
CityBase.png
BIN
CityBase.png
Binary file not shown.
Before Width: | Height: | Size: 757 KiB |
27
Main.py
27
Main.py
@ -6,7 +6,7 @@ import Backend
|
|||||||
import customtkinter
|
import customtkinter
|
||||||
from customtkinter import *
|
from customtkinter import *
|
||||||
import PIL
|
import PIL
|
||||||
from PIL import Image, ImageTk
|
from PIL import Image
|
||||||
|
|
||||||
# Initialize a configparser object for managing the configuration file
|
# Initialize a configparser object for managing the configuration file
|
||||||
config = configparser.ConfigParser()
|
config = configparser.ConfigParser()
|
||||||
@ -62,37 +62,32 @@ def main():
|
|||||||
set_default_color_theme("blue")
|
set_default_color_theme("blue")
|
||||||
|
|
||||||
#Add a frame for the tabs
|
#Add a frame for the tabs
|
||||||
#tab_frame = CTkFrame(master=app)
|
tab_frame = CTkFrame(master=app)
|
||||||
#tab_frame.pack()
|
tab_frame.pack()
|
||||||
|
|
||||||
|
#Title image
|
||||||
#Add Canvas for background and title
|
|
||||||
|
|
||||||
titleimage = Image.open(Backend.resource_path("Title.png"))
|
titleimage = Image.open(Backend.resource_path("Title.png"))
|
||||||
titlephoto = ImageTk.PhotoImage(titleimage)
|
titlelabel = CTkLabel(master=app, text="", image=CTkImage(titleimage, size=(700, 250)))
|
||||||
season6_bg = Image.open(Backend.resource_path("CityBase.png"))
|
titlelabel.pack(expand=True, padx=0, pady=0)
|
||||||
season6_scale = season6_bg.resize((1280,720))
|
|
||||||
season6_ph = ImageTk.PhotoImage(season6_scale)
|
|
||||||
|
|
||||||
bg_canvas = CTkCanvas(master=app, height=720, width=1280)
|
|
||||||
bg_canvas.pack(expand=True, fill='both')
|
|
||||||
bg_canvas.create_image(1,1, anchor=NW, image = season6_ph)
|
|
||||||
bg_canvas.create_image(130,1, anchor=NW, image = titlephoto)
|
|
||||||
|
|
||||||
# Tabs to seperate options from launching the game
|
# Tabs to seperate options from launching the game
|
||||||
|
|
||||||
guitabs = CTkTabview(master=bg_canvas, bg_color="#292929", corner_radius=20)
|
guitabs = CTkTabview(master=app, bg_color="transparent", corner_radius=20)
|
||||||
guitabs.pack(expand=True, fill='x', padx=0, pady=(0), anchor="s")
|
guitabs.pack(expand=True, fill='y', padx=0, pady=(0), anchor="ne")
|
||||||
|
|
||||||
|
|
||||||
guitabs.add("Launcher")
|
guitabs.add("Launcher")
|
||||||
guitabs.add("Options")
|
guitabs.add("Options")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#root.title("Select Prism Instance Path")
|
#root.title("Select Prism Instance Path")
|
||||||
|
|
||||||
# Label for instructions
|
# Label for instructions
|
||||||
label = CTkLabel(master=guitabs.tab("Options"), text="Select Prism instance path:", font=("Arial", 30))
|
label = CTkLabel(master=guitabs.tab("Options"), text="Select Prism instance path:", font=("Impact", 30))
|
||||||
label.pack(pady=10)
|
label.pack(pady=10)
|
||||||
|
|
||||||
# Entry widget for Prism instance path
|
# Entry widget for Prism instance path
|
||||||
|
Loading…
Reference in New Issue
Block a user