PyQt5 QCalendarWidget – Modal Widget Property
In this article we will see how we can get modal widget property the QCalendarWidget. In order to do this we use
isModal method, this property holds whether the calendar is a modal widget. This property only makes sense for windows. A modal widget prevents widgets in all other windows from getting any input. By default, this property is false.
In order to do this we will use
isModalmethod with the QCalendarWidget object.
Syntax : calendar.isModal()
Argument : It takes no argument
Return : It return bool
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