schrodinger.ui.qt.tasks.taskbarwidgets module¶
- class schrodinger.ui.qt.tasks.taskbarwidgets.TaskWidgetMixin(*args, **kwargs)¶
Bases:
schrodinger.models.advanced_mappers.MultiModelClassMapperMixin
- model_classes = (<class 'schrodinger.tasks.tasks.AbstractTask'>, <class 'schrodinger.tasks.taskmanager.TaskManager'>)¶
- __init__(*args, **kwargs)¶
- makeInitialModel()¶
- setTask(task)¶
- class schrodinger.ui.qt.tasks.taskbarwidgets.NameLineEdit(*args, **kwargs)¶
Bases:
schrodinger.ui.qt.tasks.taskbarwidgets.TaskWidgetMixin
,PyQt6.QtWidgets.QLineEdit
- __init__(*args, **kwargs)¶
- setModel(model)¶
Sets the model object for the mapper. Disconnects the old model, if one is set, and connects the new model. Pass in None to have no model set.
- Parameters
model – the model instance or None
- getSignalsAndSlots(model)¶
Override this method to specify signal and slot pairs that need to be connected/disconnected whenever the model instance is switched using setModel. The model instance is provided as an argument so that instance-specific signals can be used, but any pairs of signals and slots may be returned from this method.
- Returns
a list of 2-tuples where each tuple is a signal, slot pair
- class schrodinger.ui.qt.tasks.taskbarwidgets.StyledAcceptsFocusPushButton(*args, **kwargs)¶
Bases:
schrodinger.ui.qt.utils.ButtonAcceptsFocusMixin
,schrodinger.ui.qt.standard_widgets.buttons.StyledButton
A StyledButton that also accepts focus on click