PyDMDateTimeEdit

class pydm.widgets.datetime.PyDMDateTimeEdit(parent=None, init_channel=None)[source]

Bases: QDateTimeEdit, PyDMWritableWidget

A QDateTimeEdit with support for setting the text via a PyDM Channel, or through the PyDM Rules system.

Parameters:
  • parent (QWidget) – The parent widget for the Label

  • init_channel (str, optional) – The channel to be used by the widget.

Q_ENUM(a0: Union[type, enum.Enum])
eventFilter(self, a0: Optional[QObject], a1: Optional[QEvent]) bool[source]
keyPressEvent(self, e: Optional[QKeyEvent])[source]
readBlockPastDate() bool[source]

Error out if user tries to set value to a date older than current.

readRelative() bool[source]

Whether the value in milliseconds is relative to current date or if it is milliseconds since epoch.

readTimeBase() TimeBase[source]

Whether to use milliseconds or seconds as time base for the widget

value_changed(new_val)[source]

Callback invoked when the Channel value is changed.

Parameters:

new_val (str, int, float, bool or np.ndarray) – The new value from the channel. The type depends on the channel.

Note

See QDateTimeEdit Documentation for all inherited properties and methods.