PyQt5 – alignment() method for Label
In this article, we will see about
alignment() method. This method is used too know the type of alignment the label is having. We use
setAlignment() method to set the alignment,
alignment() method returns the Qt.Alignment object which is the argument of the
Syntax : label.alignment()
Argument : It takes no argument.
Return : It returns the Qt.Alignment object
PyQt5.QtCore.Qt.Alignment object at 0x0000021C0076E828
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