More stupid PyQt enums

This commit is contained in:
Kovid Goyal 2020-12-20 11:22:59 +05:30
parent 1a3ca21b18
commit a44a4a9041
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -582,7 +582,7 @@ def __init__(self, parent=None):
self.setMinimumDateTime(UNDEFINED_QDATETIME)
self.setCalendarPopup(True)
self.cw = CalendarWidget(self)
self.cw.setVerticalHeaderFormat(self.cw.NoVerticalHeader)
self.cw.setVerticalHeaderFormat(QCalendarWidget.VerticalHeaderFormat.NoVerticalHeader)
self.setCalendarWidget(self.cw)
self.setSpecialValueText(_('Undefined'))