File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 1+ __author__ = 'Avinash'
2+
3+ from tkinter import *
4+
5+ root = Tk ()
6+ topFrame = Frame (root )
7+ topFrame .pack (side = TOP )
8+
9+ middleFrame = Frame (root )
10+ middleFrame .pack (side = RIGHT )
11+
12+ bottomFrame = Frame (root , bg = "green" )
13+ bottomFrame .pack (side = BOTTOM )
14+
15+ topFrame_Label = Label (topFrame , text = "Welcome to Python GUI(Top Frame)" )
16+ topFrame_Label .pack ()
17+
18+ middleFrame_Label = Label (middleFrame , text = "Welcome to Python GUI(Middle Frame)" )
19+ middleFrame_Label .pack ()
20+
21+ bottomFrame_Label = Label (bottomFrame , text = "Welcome to Python GUI(Bottom Frame)" )
22+ bottomFrame_Label .pack ()
23+ theButton = Button (bottomFrame , text = "Button" , fg = "red" , bg = "black" )
24+ theButton .pack ()
25+ root .minsize (400 , 400 )
26+ root .mainloop ()
You can’t perform that action at this time.
0 commit comments