Issue
I want to check QLabels state and make an action over that control. I have a label and I want to use isEnabled()
function on this label (or something like that function).
I try to use isEnabled()
on label but it didn't work and I could not find any similar function.
if self.myLabel.isEnabled():
print("yes label is enabled")
else:
print("label is disabled")
Solution
If you set self.myLabel.setDisabled(True)
then self.myLabel.isEnabled()
should return False, but try: self.myLabel.isVisible()
.
Answered By - João Matos
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.