There was an error while loading. Please reload this page.
1 parent cb91f58 commit 6f1718eCopy full SHA for 6f1718e
1 file changed
firstGUI.py
@@ -0,0 +1,26 @@
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()
0 commit comments