From ff934a4a67cc616c35c708432037693480548130 Mon Sep 17 00:00:00 2001 From: 0xward Date: Mon, 18 May 2026 01:06:47 +0700 Subject: [PATCH] `fix: replace redundant import with explicit tk alias` --- tkinter-1.py | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/tkinter-1.py b/tkinter-1.py index 04bc05f..a0282e4 100644 --- a/tkinter-1.py +++ b/tkinter-1.py @@ -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() \ No newline at end of file