In this article we will see how to adjust the size of the push button according to the text. We know we can change the size of button using
resize method every time resizing it manually is difficult. Therefore, we have
adjustSize method which automatically adjust the size of the push button according to the text in it.
Syntax : button.adjustSize()
Argument : It takes no argument.
Action performed : It changes the size of button according to the text in it.
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