PyQt5 QCalendarWidget – Hidden Property
In this article we will see how we can hide and un hide the QCalendarWidget using hidden property, hiding is exactly opposite of showing the QCalendarWidget. Calendar widget is a big widget therefore there is a need to hide it when user don’t need it. We can hide it using
hide method but we can’t unhide it using the same method.
In order to do this we will use
setHiddenmethod with the QCalendarWidget object.
Syntax : calendar.setHidden(True)
Argument : It takes bool as argument i.e True for hiding and False for not hiding
Return : It returns None
Below is the implementation
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