File structure set
This commit is contained in:
43
UI/GUI.py
Normal file
43
UI/GUI.py
Normal file
@@ -0,0 +1,43 @@
|
||||
import tkinter as tk
|
||||
from tkinter import ttk
|
||||
from Logic.Filehandler import vytvor_zip
|
||||
|
||||
def run_app():
|
||||
root = tk.Tk()
|
||||
root.title("Three Tab GUI")
|
||||
root.geometry("1280x720")
|
||||
|
||||
notebook = ttk.Notebook(root)
|
||||
notebook.pack(expand=True, fill='both')
|
||||
|
||||
tab1 = ttk.Frame(notebook)
|
||||
tab2 = ttk.Frame(notebook)
|
||||
tab3 = ttk.Frame(notebook)
|
||||
|
||||
notebook.add(tab1, text="Tab 1")
|
||||
notebook.add(tab2, text="Tab 2")
|
||||
notebook.add(tab3, text="Tab 3")
|
||||
|
||||
label1 = ttk.Label(tab1, text="Welcome to Tab 1")
|
||||
columns = ("Name", "Age", "Occupation")
|
||||
|
||||
tree = ttk.Treeview(tab1, columns=columns, show='headings')
|
||||
|
||||
# Define column headers
|
||||
for col in columns:
|
||||
tree.heading(col, text=col)
|
||||
tree.column(col, anchor='center', width=150)
|
||||
|
||||
label1.pack(pady=20)
|
||||
tree.pack(pady=20)
|
||||
|
||||
label2 = ttk.Label(tab2, text="This is Tab 2")
|
||||
label2.pack(pady=20)
|
||||
|
||||
label3 = ttk.Label(tab3, text="You are in Tab 3")
|
||||
label3.pack(pady=20)
|
||||
|
||||
root.mainloop()
|
||||
|
||||
if __name__ == "__main__":
|
||||
run_app()
|
||||
Reference in New Issue
Block a user