Created
June 11, 2013 00:31
-
-
Save scw/5753650 to your computer and use it in GitHub Desktop.
Example showing how to create categories within a Python toolbox.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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