We know by default when we resize the window, status bar also get resized. In this article we will see how to set the maximum size of the status bar i.e when we extend the window status bar should not extend beyond this size.
In order to do this we will use
setMaximumSize method with status bar object.
Syntax : self.statusBar().setMaximumSize(width, height)
Argument : It takes two argument, both integer which refers width and height.
Action performed : It sets the maximum size to status bar.
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