Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Python Toolbox Tool Display Order

$
0
0
Hi,

I've been coding a python toolbox for use in a data conversion process. I would like the tools to be presented in the order in which they need to be run as opposed to alphabetical which seems to be default way the tool are listed. I have tried placing the tools in the order I want in the list for the tools for example:

Code:

class Toolbox(object):
    def __init__(self):
        """Define the toolbox (the name of the toolbox is the name of the
        .pyt file)."""
        self.label = "My Toolbox"
        self.alias = ""
        # List of tool classes associated with this toolbox
        self.tools = [Importdata,Convertdata, CalculateMeasures, StationLine,
        CreatePoints,ExtractPoint,CreateDataPackage]

So other than naming the tools step 1, step 2 etc. is there a way to overide the default listing of the tools in a python toolbox?

Cheers!

Viewing all articles
Browse latest Browse all 2485

Trending Articles