tkinter
Python Tkinter Program to Create Minimum and Maximum Size Window
01. Example: import tkinter as tk root = tk.Tk() root.title('Tkinter Window Demo') root.geometry('640×480+200+200') root.minsize(400, 400) # minsize(minWidth, minHeight) root.maxsize(640, 480) # minsize(maxWidth, maxHeight) root.mainloop() Output: Minimum size window. Output: Maximum …
Python Tkinter Program To Center The Window Position
01. Example: import tkinter as tk root = tk.Tk() root.title('Tkinter Title') windowWidth = 640 windowHeight = 480 screenWidth = root.winfo_screenwidth() screenHeight = root.winfo_screenheight() xCenter = int(screenWidth/2 – windowWidth / 2) …