diff --git a/3d-printer.ico b/3d-printer.ico new file mode 100644 index 0000000..98fd517 Binary files /dev/null and b/3d-printer.ico differ diff --git a/main.py b/main.py index 16501bf..a3802de 100644 --- a/main.py +++ b/main.py @@ -512,5 +512,38 @@ def getPlastics(): return plst +def showAllUsersGui(): + window = Tk() + window.geometry("800x600") + window.iconbitmap(default="3d-printer.ico") + window.title("Все пользователи системы") + + lbl1=Label(window,text="Все пользователи системы",font=("",25),fg="#fed9b7",bg="#5D6D7E") + lbl1.pack(anchor="center") + + + tree = ttk.Treeview(window, column=("FName", "LName", "Roll No"), show='headings', height=5) + tree.column("# 1", anchor=CENTER) + tree.heading("# 1", text="FName") + tree.column("# 2", anchor=CENTER) + tree.heading("# 2", text="LName") + tree.column("# 3", anchor=CENTER) + tree.heading("# 3", text="Roll No") + + # Insert the data in Treeview widget + tree.insert('', 'end', text="1", values=('Amit', 'Kumar', '17701')) + tree.insert('', 'end', text="1", values=('Ankush', 'Mathur', '17702')) + tree.insert('', 'end', text="1", values=('Manisha', 'Joshi', '17703')) + tree.insert('', 'end', text="1", values=('Shivam', 'Mehrotra', '17704')) + + tree.pack() + + + + + mainloop() + + + if __name__ == '__main__': - addDolgnostGui() \ No newline at end of file + showAllUsersGui() \ No newline at end of file