import tkinter as tk def zobraz_menu(): dropdown_frame.place(x=50, y=60) def skryt_menu(): dropdown_frame.place_forget() def zobraz_uvodni_obrazovku(): top_frame.pack_forget() bottom_frame.pack_forget() dropdown_frame.place_forget() obsah_frame.place_forget() uvodni_frame.place(x=0, y=0, relwidth=1, relheight=1) def spustit_aplikaci(): uvodni_frame.place_forget() top_frame.pack(side="top", fill="x") bottom_frame.pack(side="bottom", fill="x") def zobraz_obsah(text): skryt_menu() obsah_label.config(text=text) obsah_frame.place(relx=0.5, rely=0.5, anchor="center") def web_akce(): zobraz_obsah("www.eproxa.eu") def o_aplikaci_akce(): zobraz_obsah("eproxa app v1.0.1\nBy: adaMc | eproxa development 2025 – datum vývoje 25. 7. 2025") def programovaci_jazyk_akce(): zobraz_obsah("Python 3.13.5") def podpora_akce(): zobraz_obsah("support@eproxa.eu / eproxa@seznam.cz") def skryt_vse(): skryt_menu() obsah_frame.place_forget() # === Hlavní okno === root = tk.Tk() root.title("eproxa app v1.0.1 by adaMc") root.geometry("800x400") root.configure(bg="black") # === UVÍTACÍ OBRAZOVKA === uvodni_frame = tk.Frame(root, bg="blue") uvodni_frame.place(x=0, y=0, relwidth=1, relheight=1) uvodni_text = tk.Label( uvodni_frame, text="Vítejte na eproxa secret", fg="white", bg="blue", font=("Arial", 18, "bold") ) pokračovat_btn = tk.Button( uvodni_frame, text="Pokračovat", command=spustit_aplikaci, fg="white", bg="gray20", activebackground="gray", padx=20, pady=5 ) verze_label = tk.Label( uvodni_frame, text="eproxa app v1.0.1", fg="white", bg="blue", font=("Arial", 12) ) uvodni_text.pack(pady=120) pokračovat_btn.pack(pady=10) verze_label.pack(pady=5) # === HORNÍ PANEL === top_frame = tk.Frame(root, bg="black") menu_items = [ ("menu", zobraz_menu), ("web", web_akce), ("odhlásit se", zobraz_uvodni_obrazovku), ] for text, funkce in menu_items: btn = tk.Button(top_frame, text=text, fg="white", bg="black", bd=0, padx=10, activebackground="gray", command=funkce) btn.pack(side="left") # === DROPDOWN MENU === dropdown_frame = tk.Frame( root, bg="black", bd=0, highlightbackground="white", highlightthickness=2 ) dropdown_label = tk.Label(dropdown_frame, text="MENU", fg="white", bg="black", font=("Arial", 12, "bold")) dropdown_label.pack(anchor="w", padx=10, pady=5) dropdown_items = [ ("web", web_akce), ("podpora", podpora_akce), ("o aplikaci", o_aplikaci_akce), ("programovací jazyk", programovaci_jazyk_akce), ("odhlásit se", zobraz_uvodni_obrazovku), ] for text, funkce in dropdown_items: btn = tk.Button(dropdown_frame, text=text, fg="white", bg="black", bd=0, anchor="w", activebackground="gray", command=funkce) btn.pack(fill="x", padx=10) # === OBSAHOVÉ OKNO S RÁMEČKEM === obsah_frame = tk.Frame( root, bg="black", highlightbackground="white", highlightthickness=2, padx=20, pady=20 ) obsah_label = tk.Label(obsah_frame, text="", fg="white", bg="black", font=("Arial", 14)) obsah_label.pack() # === SPODNÍ PANEL === bottom_frame = tk.Frame(root, bg="black") bottom_btn = tk.Button(bottom_frame, text="▣ uzavřít okno", fg="white", bg="black", bd=0, padx=10, activebackground="gray", command=skryt_vse) bottom_btn.pack(side="left") # === SPUŠTĚNÍ APLIKACE === root.mainloop()