code: def setDirection( self, direction ):
          
          if ( direction == XPopupWidget.Direction.North ):
              self.setAnchor(XPopupWidget.Anchor.TopCenter)
          
          elif ( direction == XPopupWidget.Direction.South ):
              self.setAnchor(XPopupWidget.Anchor.BottomCenter)
          
          elif ( direction == XPopupWidget.Direction.East ):
              self.setAnchor(XPopupWidget.Anchor.LeftCenter)
          
          else:
              self.setAnchor(XPopupWidget.Anchor.RightCenter)
docs: Sets the direction for this widget to the inputed direction.
          
          :param      direction | <XPopupWidget.Direction>