parameters: (self, parent)
docstring: Called after the instance has been created.
docstring_summary: Called after the instance has been created.
docstring_tokens: Called after the instance has been created .
function: def __init__(self, parent):
          """Called after the instance has been created."""
          super(WalterWidget, self).__init__(parent)
  
          # Add a red boredr if it's debug version. It allows visually detect the
          # wrong version.
          if "debug" in PANEL_NAME:
              widget_id = "panel_%s" % CALLBACK_OWNER
              self.setStyleSheet(
                  "#%s { border: 3px solid rgb(68,34,34); }" % widget_id)
  
          layout = QtWidgets.QVBoxLayout(self)
  
          self.walterOutliner = OutlinerTreeView(traverser=Walter(), parent=self)
          layout.addWidget(self.walterOutliner)
          self.walterOutliner.itemSelected.connect(self.subSelectObjects)
          self.walterOutliner.expressionIsMatching.connect(
              self.onexpressionIsMatching)
          self.setLayout(layout)
  
          # Clear the previously created callbacks
          callbacks = pm.callbacks(
              listCallbacks=True,
              hook=CALLBACK_SELECT,
              owner=CALLBACK_OWNER)
  
          if callbacks:
              for c in callbacks:
                  pm.callbacks(
                      removeCallback=c,
                      hook=CALLBACK_SELECT,
                      owner=CALLBACK_OWNER)
  
          # Create a new callback to have ability to celect items in the tree when
          # user selects sub-objects in the viewport
          pm.callbacks(
              addCallback=self.selectNode,
              hook=CALLBACK_SELECT,
              owner=CALLBACK_OWNER)
function_tokens: def __init__ ( self , parent ) : super ( WalterWidget , self ) . __init__ ( parent ) # Add a red boredr if it's debug version. It allows visually detect the # wrong version. if "debug" in PANEL_NAME : widget_id = "panel_%s" % CALLBACK_OWNER self . setStyleSheet ( "#%s { border: 3px solid rgb(68,34,34); }" % widget_id ) layout = QtWidgets . QVBoxLayout ( self ) self . walterOutliner = OutlinerTreeView ( traverser = Walter ( ) , parent = self ) layout . addWidget ( self . walterOutliner ) self . walterOutliner . itemSelected . connect ( self . subSelectObjects ) self . walterOutliner . expressionIsMatching . connect ( self . onexpressionIsMatching ) self . setLayout ( layout ) # Clear the previously created callbacks callbacks = pm . callbacks ( listCallbacks = True , hook = CALLBACK_SELECT , owner = CALLBACK_OWNER ) if callbacks : for c in callbacks : pm . callbacks ( removeCallback = c , hook = CALLBACK_SELECT , owner = CALLBACK_OWNER ) # Create a new callback to have ability to celect items in the tree when # user selects sub-objects in the viewport pm . callbacks ( addCallback = self . selectNode , hook = CALLBACK_SELECT , owner = CALLBACK_OWNER )