8.5.4.1.2. pymodaq_gui.parameter.pymodaq_ptypes.date module
- class pymodaq_gui.parameter.pymodaq_ptypes.date.DateParameter(**opts)[source]
Bases:
SimpleParameterMethods
alias of
DateParameterItem- itemClass
alias of
DateParameterItem
- class pymodaq_gui.parameter.pymodaq_ptypes.date.DateParameterItem(param, depth)[source]
Bases:
WidgetParameterItemRegistered parameter type which displays a QLineEdit
Methods
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:
SimpleParameterMethods
alias of
DateTimeParameterItem- itemClass
alias of
DateTimeParameterItem
- class pymodaq_gui.parameter.pymodaq_ptypes.date.DateTimeParameterItem(param, depth)[source]
Bases:
WidgetParameterItemRegistered parameter type which displays a QLineEdit
Methods
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:
QTimeEditMethods
setTime(self, time)setMinuteIncrement
updateTime
- setTime(self, time: QTime | datetime.time)[source]
- class pymodaq_gui.parameter.pymodaq_ptypes.date.TimeParameter(**opts)[source]
Bases:
SimpleParameterMethods
alias of
TimeParameterItem- itemClass
alias of
TimeParameterItem
- class pymodaq_gui.parameter.pymodaq_ptypes.date.TimeParameterItem(param, depth)[source]
Bases:
WidgetParameterItemRegistered parameter type which displays a QLineEdit
Methods
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.
- class pymodaq_gui.parameter.pymodaq_ptypes.date.WidgetParameterItem(param, depth)[source]
Bases:
WidgetParameterItemMethods
updateDisplayLabel([value])Update the display label to reflect the value of the parameter.