The PopupCalendarWidget class provides a simple way to show a calendar where the user can pick up a date. More...
Public Member Functions | |
| def | __init__ |
| Constructs a PopupCalendarWidget. | |
| def | storeOnParent |
| Stores the currently selected date (or date and time) in the parent widget and closes the popup. | |
The PopupCalendarWidget class provides a simple way to show a calendar where the user can pick up a date.
You simply need to call PopupCalendarWidget(widget) where widget should be a QLineEdit or similar. The Popup will fill in the date itself.
If you want the user to be able to select date and time, specify showTime=True when constructing the object.
You may force the pop-up to store and close with the storeOnParent() function.
Of course, PopupCalendarWidget uses the other ToTime and ToText helper functions.
Definition at line 226 of file Common/Calendar.py.
| def Koo::Common::Calendar::PopupCalendarWidget::__init__ | ( | self, | ||
| parent, | ||||
showTime = False | ||||
| ) |
Constructs a PopupCalendarWidget.
If showTime is True, the user will be able to select the time too.
Definition at line 229 of file Common/Calendar.py.
| def Koo::Common::Calendar::PopupCalendarWidget::storeOnParent | ( | self | ) |
Stores the currently selected date (or date and time) in the parent widget and closes the popup.
It also emits a 'selected()' signal.
Definition at line 270 of file Common/Calendar.py.