PyQt5 – Add padding to Status Bar
In this article we will see how to add padding to status bar. Unlike main window which don’t have padding, status bar allows us to set padding to it. Padding is basically the space between border and content of status bar, we can set this size by using
setStyleSheet method with status bar object.
Note : In status bar, padding is available for top and bottom only, it is not available for left or right edge.
Syntax : self.statusBar().setStyleSheet(“padding : 15px;”)
Argument : It takes string as argument.
Action performed : It set padding to the 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