Skip to content
Snippets Groups Projects
Commit 002cce2c authored by Lan Dam's avatar Lan Dam
Browse files

Set not show DOY when open calendar to match with checkbox

parent 53302676
No related branches found
No related tags found
1 merge request!76Set not show DOY when open calendar to match with checkbox
......@@ -8,7 +8,6 @@ class CalendarWidget(QtWidgets.QCalendarWidget):
"""
def __init__(self, parent):
super().__init__(parent)
self.setup_ui()
"""
toggle_day_of_year: QCheckBox: for user to choose to show day of year
or not
......@@ -20,6 +19,7 @@ class CalendarWidget(QtWidgets.QCalendarWidget):
"""
self._show_day_of_year = getattr(
self, 'toggle_day_of_year', None) is None
self.setup_ui()
def setup_ui(self):
"""
......@@ -48,6 +48,8 @@ class CalendarWidget(QtWidgets.QCalendarWidget):
self.toggle_day_of_year.show()
self.set_show_day_of_year(False)
def show_day_of_year(self):
"""
Get the value of self._show_day_of_year
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment