schrodinger.ui.qt.jobwidgets module

This module provides job widgets compatible with all Schrodinger python application frameworks.

Copyright Schrodinger, LLC. All rights reserved.

class schrodinger.ui.qt.jobwidgets.JobStatusButton(parent: Optional[PyQt6.QtWidgets.QWidget] = None, viewname: Optional[str] = None)

Bases: schrodinger.models.mappers.TargetMixin, schrodinger.ui.qt.standard_widgets.buttons.FlatButton

A button with a spinner icon that spins upon the parent widget launching a job. It continues to spin for up to 30 seconds after the job has started, or until the job finishes or fails. Failures result in an error icon.

Clicking this tool button will launch the job monitor panel.

This button also implements targetSetValue to support mapping to a task or taskmanager.

Note: This button will not show/hide properly if added to a QToolBar since this is not a QAction. It works well inside a layout.

__init__(parent: Optional[PyQt6.QtWidgets.QWidget] = None, viewname: Optional[str] = None)
Variables

viewname – View name to use for job launching and monitoring. If not specified, use setViewname() to set it at a later time.

setViewname(viewname: Optional[str] = None)

Set the viewname and instantiate the job icon state tracker.

targetSetValue(task_or_taskman)