widgets.datetime_editor

An editor widget for editing datetime database (relationship) parameter values.

author:
  1. Soininen (VTT)
date:

28.6.2019

Module Contents

widgets.datetime_editor._QDateTime_to_datetime(dt)[source]

Converts a QDateTime object to Python’s datetime.datetime type.

widgets.datetime_editor._datetime_to_QDateTime(dt)[source]

Converts Python’s datetime.datetime object to QDateTime.

class widgets.datetime_editor.DatetimeEditor(parent=None)[source]

Bases: PySide2.QtWidgets.QWidget

An editor widget for DateTime type parameter values.

parent

a parent widget

Type:QWidget
_change_datetime(self, new_datetime)[source]

Updates the internal DateTime value

set_value(self, value)[source]

Sets the value to be edited.

value(self)[source]

Returns the editor’s current value.