PyQt5 QCalendarWidget – Hiding the Navigation Bar
In this article we will see how we can hide the navigation bar of the QCalendarWidget. Navigation bar is the top section of the calendar which is used to change the next month, previous month, month selection, year selection. By default navigation bar is visible although we an hide it any time, below is the representation of navigation bar of QCalendarWidget.
In order to do this we will use
setNavigationBarVisiblemethod with the QCalendarWidget object.
Syntax : calendar.setNavigationBarVisible(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. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course