-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTkinter Toolbar.py
More file actions
35 lines (24 loc) · 883 Bytes
/
Copy pathTkinter Toolbar.py
File metadata and controls
35 lines (24 loc) · 883 Bytes
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
32
33
34
35
#;==========================================
#; Title: Tkinter toolbar
#; Author: @AyemunHossain
#;==========================================
from tkinter import *
def p():
print("You Clicked")
root = Tk()
root.geometry('400x400')
frame1 = Frame(root, bg="gray")
frame1.pack(side=TOP, fill=X)
button1 = Button(frame1, text="Home", command=p)
button1.pack(side=LEFT, padx=2, pady=5)
button2 = Button(frame1, text="Profile", command=p)
button2.pack(side=LEFT, padx=2, pady=5)
button3 = Button(frame1, text="Message", command=p)
button3.pack(side=LEFT, padx=2, pady=5)
button4 = Button(frame1, text="Find Friends", command=p)
button4.pack(side=LEFT, padx=2, pady=5)
button5 = Button(frame1, text="See Request", command=p)
button5.pack(side=LEFT, padx=2, pady=5)
button6 = Button(frame1, text="Chat", command=p)
button6.pack(side=LEFT, padx=2, pady=5)
root.mainloop()