schrodinger.ui.qt.standard_widgets.statusbar module

class schrodinger.ui.qt.standard_widgets.statusbar.StatusBar

Bases: QStatusBar

showMessage(message, timeout=0, color=None)

Modifies existing showMessage function to include color. Also makes text bold for emphasis.

Parameters:
  • message (str) – the message to display

  • timeout (int) – time to show message in ms. If set to 0 (default) the message is not cleared.

  • color (QtGui.QColor) – text color for message. Default is black

class schrodinger.ui.qt.standard_widgets.statusbar.TaskPanelStatusBar(*args, **kwargs)

Bases: StatusBar

A status bar that can show temporary messages without hiding widgets.

__init__(*args, **kwargs) → None
addStatusLabel(status_label: QLabel) → None

Add the label displayed when no temporary message is active.

currentMessage() → str

Return the active temporary message.

clearMessage() → None

Clear the active temporary message.

showMessage(message, timeout=0, color=None)

Show a temporary TaskPanel status message.