DateTimeRangeSlider#
Custom Qt widget to select range of date/times.
|
Choose a range of dates. |
- class gemviz.date_time_range_slider.DateTimeRangeSlider(*args: Any, **kwargs: Any)[source]#
Choose a range of dates.
This widget provides for the selection of a low date/time & a high date/time within a minimum & maximum. Date/time entry boxes (with calendar pop-ups) are provided to select the low and high dates. A slider provides a visual cue to the currently-selected range.
minimum <= low < high <= maximum
Note: Internally, times are represented as timestamps. They are reported as ISO8601 date/time strings.
PUBLIC
high
()Return the latest date/time selected, in ISO8601 format.
low
()Return the earliest date/time selected, in ISO8601 format.
maximum
()Return the latest possible date/time, in ISO8601 format.
minimum
()Return the earliest possible date/time, in ISO8601 format.
setHigh
(value)Set the latest selected date/time.
setLow
(value)Set the earliest selected date/time.
setMaximum
(value)Set the last possible date/time to be selected.
setMinimum
(value)Set the earliest possible date/time to be selected.
INTERNAL
setup
()Configure the UI widgets.
adjustDates
(low, high)Called when slider widget has moved.
adjustSlider
(*args)Called when either date widget was changed.
- adjustDates(low, high)[source]#
Called when slider widget has moved.
low & high are integer timestamps
- setHigh(value)[source]#
Set the latest selected date/time.
PARAMETER:
- value str :
Date & time in ISO8601 format, such as: “2021-03-04 21:55”.
- setLimits(low, high)[source]#
Set the widget time boundaries: minimum, maximun, low, high.
PARAMETER:
- low str :
Earliest possible date/time, in ISO8601 format.
- high str :
Latest possible date/time, in ISO8601 format.
- setLow(value)[source]#
Set the earliest selected date/time.
PARAMETER:
- value str :
Date & time in ISO8601 format, such as: “2021-03-04 21:55”.
- setMaximum(value)[source]#
Set the last possible date/time to be selected.
PARAMETER:
- value str :
Date & time in ISO8601 format, such as: “2021-03-04 21:55”.