# `ActionFactory`

digraph inheritancef2acba5af3 { bgcolor=transparent; rankdir=UD; ratio=compress; size="8.0, 12.0"; "ActionFactory" [URL="#taurus.qt.qtgui.util.ActionFactory",color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,target="_top",tooltip="A Singleton class designed to provide Action related objects."]; "Singleton" -> "ActionFactory" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Logger" -> "ActionFactory" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Logger" [URL="taurus-Logger.html#taurus.Logger",color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,target="_top",tooltip="The taurus logger class. All taurus pertinent classes should inherit"]; "Singleton" [URL="taurus.core.util.singleton-Singleton.html#taurus.core.util.singleton.Singleton",color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,target="_top",tooltip="This class allows Singleton objects"]; }

class ActionFactory(*p, **k)

  A Singleton class designed to provide Action related objects.

  Import from `taurus.qt.qtgui.util` as:

      from taurus.qt.qtgui.util import ActionFactory

  buildAction(widget, a_node)
  buildMenu(widget, m_node)
  createAction(parent, text, shortcut=None, icon=None, tip=None, toggled=None, triggered=None, data=None, context=1)

    Create a QAction

  getActions()
  getMenus()
  getNewAction(widget, id)
  getNewMenu(widget, data)
  init(*args)

    Singleton instance initialization.