Python TKINTER #1: Geometry

 Python TKINTER #1: Geometry 

 

Geometry in python is used to fix the size of window of GUI .

 1.) How to set geometry ?

To set the geometry in python follow the following steps
**************
from tkinter import *
root = Tk()

root.geometry('heigth x width')

root.mainloop()
**************

 2.) How to set minimum and maximum size?
 
There are two ways of setting minimum and maximum size of geometry which are known by name minsize and mazsize.
**************
from tkinter import *
root = Tk()

root.geometry('heigth x width')
root.minsize(height,width)
root.maxsize(height,width)

root.mainloop()
**************










 


Comments

Popular posts from this blog

#2 Library Management Software

#3 Water remainder Programme