schrodinger.application.bunsen.gui.bunsen_button module¶
- class schrodinger.application.bunsen.gui.bunsen_button.BunsenButton(*args: object, **kwargs: object)¶
Bases:
QToolButton- __init__(*args: object, **kwargs: object)¶
Create the button in the disconnected state.
The object name drives the stylesheet selectors, so it must be set before applying the stylesheet.
- updateConnectionState(connected: bool)¶
Apply the connected-state icon and hover tooltip.
Visibility is owned by the Window menu toggle, not the connection state.
- Parameters:
connected – whether Maestro is connected to a Bunsen session.
- schrodinger.application.bunsen.gui.bunsen_button.open_bunsen_connection_panel()¶
Open the Bunsen connection panel (toolbar + Window-menu entry point).
- schrodinger.application.bunsen.gui.bunsen_button.add_bunsen_button()¶
Add the Bunsen button to the auxiliary toolbar right of Favorites.
Places it immediately after the spacer and retries every 500ms until the toolbar exists. Idempotent; initial visibility is restored from preferences.
- schrodinger.application.bunsen.gui.bunsen_button.set_bunsen_button_visible(visible: bool)¶
Show/hide the Bunsen toolbar icon; persist for next startup.
Called from Maestro > Window > Bunsen Connection menu item.
- Parameters:
visible – whether the Bunsen toolbar icon should be shown.