add icon and window title
This commit is contained in:
BIN
3d-printer.ico
Normal file
BIN
3d-printer.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 102 KiB |
35
main.py
35
main.py
@@ -512,5 +512,38 @@ def getPlastics():
|
|||||||
|
|
||||||
return plst
|
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__':
|
if __name__ == '__main__':
|
||||||
addDolgnostGui()
|
showAllUsersGui()
|
||||||
Reference in New Issue
Block a user