Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 4 additions & 18 deletions tkinter-1.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,8 @@
#importing
from tkinter import *
import tkinter as tk

#calling Tk() method
root = tk.Tk()
#its used for creating gui window

#title() method is used to change the title
root = tk.Tk()
root.title("My GUI")

#geometry() method is used to resize the Gui Window
root.geometry("250x250")

#maxsize() method is used for define the maximum size of the window
root.maxsize(300,300)

#minsize() method is used for define the minimum size of the window
root.minsize(200,200)

#mainloop() is used to load the GUI Window
root.mainloop()
root.maxsize(300, 300)
root.minsize(200, 200)
root.mainloop()