add icon and window title

This commit is contained in:
2023-06-03 20:58:34 +03:00
parent 5c4817feed
commit c918a6cc4c
2 changed files with 34 additions and 1 deletions

BIN
3d-printer.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

35
main.py
View File

@@ -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()
showAllUsersGui()