schrodinger.ui.qt.appframework2.appmethods module

schrodinger.ui.qt.appframework2.appmethods.custom(button_text=None, order=0, tooltip=None)

Decorator function used to add a custom button to the bottom button bar.

schrodinger.ui.qt.appframework2.appmethods.custom_menu_item(menu_text='Custom Menu Text', order=0, tooltip=None)

Decorator function used to add a custom menu item to the gear box options.

schrodinger.ui.qt.appframework2.appmethods.start(button_text='Run', tooltip='Click to run panel', add_write=True)

Decorator function for the ‘Start’ method.

Parameters
  • button_text (str) – Label for the start button

  • tooltip (str) – Tooltip for the start button

  • add_write (bool) – Whether the start method should double as a write method. This is possible if using af2 launch methods or if the start method respects the state of the start_mode member variable.

schrodinger.ui.qt.appframework2.appmethods.prestart()
schrodinger.ui.qt.appframework2.appmethods.write(button_text='Write', tooltip=None)
schrodinger.ui.qt.appframework2.appmethods.prewrite()
schrodinger.ui.qt.appframework2.appmethods.read(button_text='Read', tooltip=None)
schrodinger.ui.qt.appframework2.appmethods.reset(button_text='Reset', tooltip='Reset the panel')
schrodinger.ui.qt.appframework2.appmethods.close(button_text='Close', tooltip=None)
schrodinger.ui.qt.appframework2.appmethods.show()

A decorator for methods that are called when the panel is shown (both the initial launch and later re-showings).

schrodinger.ui.qt.appframework2.appmethods.sort_order(method)
class schrodinger.ui.qt.appframework2.appmethods.MethodsDict(source_obj)

Bases: dict

__init__(source_obj)
setButtonMethods(source_obj)
setSelfMethods()
emptyMethod()