In this article we will see how we can make QCalendarWidget visible and invisible, by making the visible property False we can make it invisible. We can make it visible with the help of
show method but this method will not make it invisible therefore we use visible property that can do both.
In order to do this we will use
setVisiblemethod with the QCalendarWidget object.
Syntax : calendar.setVisible(False)
Argument : It takes bool as argument
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.