parameters: (self, toolName)
docstring: Set the currently selected tool.
docstring_summary: Set the currently selected tool.
docstring_tokens: Set the currently selected tool .
function: def setCurrentTool(self, toolName):
          """ Set the currently selected tool.
          """
          
          toolIcon, tool = self.tools[toolName]
          if self.curToolIcon is not None:
              self.curToolIcon.SetValue(False)
  
          toolIcon.SetValue(True)
          self.curToolName = toolName
          self.curToolIcon = toolIcon
          self.curTool = tool
          self.drawPanel.SetCursor(tool.getDefaultCursor())
function_tokens: def setCurrentTool ( self , toolName ) : toolIcon , tool = self . tools [ toolName ] if self . curToolIcon is not None : self . curToolIcon . SetValue ( False ) toolIcon . SetValue ( True ) self . curToolName = toolName self . curToolIcon = toolIcon self . curTool = tool self . drawPanel . SetCursor ( tool . getDefaultCursor ( ) )