Skip to content

Commit 62b1e59

Browse files
Create tkinter-1.py
1 parent d2b84a8 commit 62b1e59

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Diff for: tkinter-1.py

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#importing
2+
from tkinter import *
3+
import tkinter as tk
4+
5+
#calling Tk() method
6+
root = tk.Tk()
7+
8+
#title() method is used to change the title
9+
root.title("My GUI")
10+
11+
#geometry() method is used to resize the Gui Window
12+
root.geometry("250x250")
13+
14+
#maxsize() method is used for define the maximum size of the window
15+
root.maxsize(300,300)
16+
17+
#minsize() method is used for define the minimum size of the window
18+
root.minsize(200,200)
19+
20+
#mainloop() is used to load the GUI Window
21+
root.mainloop()

0 commit comments

Comments
 (0)