forked from Swayy03/AveryAI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathModernGui.py
31 lines (22 loc) · 890 Bytes
/
ModernGui.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import customtkinter as ctk
import tkinter as tk
from tkinter import ttk
class trial:
def __init__(self):
self.root = ctk.CTk()
self.root.title("Trying sth")
self.root.geometry("640x720")
def getid():
for item in self.treeview1.selection():
print(item)
idis = []
self.treeview1 = ttk.Treeview(self.root, columns=('sth', 'else', 'entirely'), show='headings', )
self.treeview1.heading('sth', text= 'Sth')
self.treeview1.heading('else', text='Else')
self.treeview1.heading('entirely', text='Entirely')
self.treeview1.pack()
self.treeview1.insert(parent='', index=0, values=('hello', 'there', 'stanger'))
self.somebutton = ctk.CTkButton(self.root, text='button', command=getid, )
self.somebutton.pack()
self.root.mainloop()
trial1 = trial()