In this article, we will see how to stop resizing of the main window. While making a window, we get options like going full screen and using cursor to change its size. By using
setFizedSize() method we can prevent the resizing of the image.
Syntax : self.setFixedSize(width, height)
Argument : It takes two integer as argument i.e width and height.
Action performed : It set the fixed size of window.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course