Skip to content

Instantly share code, notes, and snippets.

@scw
Created June 11, 2013 00:31
Show Gist options
  • Save scw/5753650 to your computer and use it in GitHub Desktop.
Save scw/5753650 to your computer and use it in GitHub Desktop.
Example showing how to create categories within a Python toolbox.
import arcpy
class Toolbox(object):
def __init__(self):
self.label = u'Example_Toolbox'
self.alias = ''
self.tools = [FirstTool, SecondTool, ThirdTool]
class FirstTool(object):
def __init__(self):
self.label = u'First Tool'
self.description = u''
self.canRunInBackground = False
self.category = "Import"
def getParameterInfo(self):
return
def execute(self, parameters, messages):
pass
class SecondTool(object):
def __init__(self):
self.label = u'Second Tool'
self.description = u''
self.canRunInBackground = False
self.category = "Export"
def getParameterInfo(self):
return
def execute(self, parameters, messages):
pass
class ThirdTool(object):
def __init__(self):
self.label = u'Third Tool'
self.description = u''
self.canRunInBackground = False
self.category = "Export"
def getParameterInfo(self):
return
def execute(self, parameters, messages):
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment