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()
__contains__(key, /)

True if the dictionary has the specified key, else False.

__len__()

Return len(self).

clear() None.  Remove all items from D.
copy() a shallow copy of D
fromkeys(value=None, /)

Create a new dictionary with keys from iterable and values set to value.

get(key, default=None, /)

Return the value for key if key is in the dictionary, else default.

items() a set-like object providing a view on D’s items
keys() a set-like object providing a view on D’s keys
pop(k[, d]) v, remove specified key and return the corresponding value.

If key is not found, d is returned if given, otherwise KeyError is raised

popitem()

Remove and return a (key, value) pair as a 2-tuple.

Pairs are returned in LIFO (last-in, first-out) order. Raises KeyError if the dict is empty.

setdefault(key, default=None, /)

Insert key with a value of default if key is not in the dictionary.

Return the value for key if key is in the dictionary, else default.

update([E, ]**F) None.  Update D from dict/iterable E and F.

If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]

values() an object providing a view on D’s values