PyQt5 – isLeftToRight() method for Check Box
When we create a check box by default indicator is at left hand side which we call as left to right direction although we can change its direction using
isLeftToRight method is used to check if the layout direction is from left to right or not, it returns True for the default layout direction. It is opposite of
Syntax : checkbox.isLeftToRight()
Argument : It takes no argument.
Return : It returns bool, True if layout direction is left to right else False.
Below is the implementation
Before changing direction : True After changing direction : False
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