Package schrodinger :: Package application :: Package bioluminate :: Package actions :: Module factory
[hide private]
[frames] | no frames]

Module factory

Contains Qt actions specific to the BioLuminate application.

Copyright Schrodinger, LLC. All rights reserved.

Classes [hide private]
  SAction
A QAction that enforces standards that are expected by some BioLuminate methods.
  Factory
A class dedicated to the creation, deletion and modification of groups of actions.
Functions [hide private]
 
get_action_obj_name(name)
Helper function to get the action's object name according to the syntax useed to create the name.
 
replace_slot(owner, name, slot)
Removes all slots from the action and replaces it with another slot.
Variables [hide private]
  ACTION_NAME = 'action_%(name)s'
  SEPARATOR_RE = re.compile(r'^separator_\d+')
  __package__ = 'schrodinger.application.bioluminate.actions'
Function Details [hide private]

get_action_obj_name(name)

 

Helper function to get the action's object name according to the syntax useed to create the name. The syntax is "action_<text>" where text is the text used when setting the action.

replace_slot(owner, name, slot)

 

Removes all slots from the action and replaces it with another slot.

Parameters:
  • owner - The owner of the action
  • name - The name used when creating the SAction
  • slot (callable) - The new slot to connect to
Raises:
  • AttributeError - When no action is found with that name in the owner