parameters: (self, tool_id, sticky)
docstring: Sets the toolbar item as sticky or non-sticky.
  
          :param integer `tool_id`: the :class:`AuiToolBarItem` identifier;
          :param bool `sticky`: whether the tool should be sticky or not.
docstring_summary: Sets the toolbar item as sticky or non-sticky.
docstring_tokens: Sets the toolbar item as sticky or non - sticky .
function: def SetToolSticky(self, tool_id, sticky):
          """
          Sets the toolbar item as sticky or non-sticky.
  
          :param integer `tool_id`: the :class:`AuiToolBarItem` identifier;
          :param bool `sticky`: whether the tool should be sticky or not.
          """
  
          # ignore separators
          if tool_id == -1:
              return
  
          item = self.FindTool(tool_id)
          if not item:
              return
  
          if item.sticky == sticky:
              return
  
          item.sticky = sticky
  
          self.Refresh(False)
          self.Update()
function_tokens: def SetToolSticky ( self , tool_id , sticky ) : # ignore separators if tool_id == - 1 : return item = self . FindTool ( tool_id ) if not item : return if item . sticky == sticky : return item . sticky = sticky self . Refresh ( False ) self . Update ( )