7.5.4.1.2. pymodaq_gui.parameter.pymodaq_ptypes.date module

class pymodaq_gui.parameter.pymodaq_ptypes.date.DateParameter(**opts)[source]

Bases: SimpleParameter

Methods

itemClass

alias of DateParameterItem

itemClass

alias of DateParameterItem

class pymodaq_gui.parameter.pymodaq_ptypes.date.DateParameterItem(param, depth)[source]

Bases: WidgetParameterItem

Registered parameter type which displays a QLineEdit

Methods

makeWidget()

Return a single widget whose position in the tree is determined by the value of self.asSubItem.

makeWidget()[source]

Return a single widget whose position in the tree is determined by the value of self.asSubItem. If True, it will be placed in the second tree column, and if False, the first tree column of a child item.

The widget must be given three attributes:

sigChanged

a signal that is emitted when the widget’s value is changed

value

a function that returns the value

setValue

a function that sets the value

This function must be overridden by a subclass.

class pymodaq_gui.parameter.pymodaq_ptypes.date.DateTimeParameter(**opts)[source]

Bases: SimpleParameter

Methods

itemClass

alias of DateTimeParameterItem

itemClass

alias of DateTimeParameterItem

class pymodaq_gui.parameter.pymodaq_ptypes.date.DateTimeParameterItem(param, depth)[source]

Bases: WidgetParameterItem

Registered parameter type which displays a QLineEdit

Methods

makeWidget()

Return a single widget whose position in the tree is determined by the value of self.asSubItem.

makeWidget()[source]

Return a single widget whose position in the tree is determined by the value of self.asSubItem. If True, it will be placed in the second tree column, and if False, the first tree column of a child item.

The widget must be given three attributes:

sigChanged

a signal that is emitted when the widget’s value is changed

value

a function that returns the value

setValue

a function that sets the value

This function must be overridden by a subclass.

class pymodaq_gui.parameter.pymodaq_ptypes.date.QTimeCustom(*args, **kwargs)[source]

Bases: QTimeEdit

Methods

setTime(self, time)

setMinuteIncrement

updateTime

setMinuteIncrement(minutes_increment)[source]
setTime(self, time: QTime | datetime.time)[source]
updateTime(time)[source]
class pymodaq_gui.parameter.pymodaq_ptypes.date.TimeParameter(**opts)[source]

Bases: SimpleParameter

Methods

itemClass

alias of TimeParameterItem

itemClass

alias of TimeParameterItem

class pymodaq_gui.parameter.pymodaq_ptypes.date.TimeParameterItem(param, depth)[source]

Bases: WidgetParameterItem

Registered parameter type which displays a QLineEdit

Methods

makeWidget()

Return a single widget whose position in the tree is determined by the value of self.asSubItem.

optsChanged

makeWidget()[source]

Return a single widget whose position in the tree is determined by the value of self.asSubItem. If True, it will be placed in the second tree column, and if False, the first tree column of a child item.

The widget must be given three attributes:

sigChanged

a signal that is emitted when the widget’s value is changed

value

a function that returns the value

setValue

a function that sets the value

This function must be overridden by a subclass.

optsChanged(param, opts)[source]
class pymodaq_gui.parameter.pymodaq_ptypes.date.WidgetParameterItem(param, depth)[source]

Bases: WidgetParameterItem

Methods

updateDisplayLabel([value])

Update the display label to reflect the value of the parameter.

updateDisplayLabel(value=None)[source]

Update the display label to reflect the value of the parameter.