what is self.cursor

3001
2
Jump to solution
12-31-2013 10:51 AM
RickRice
New Contributor
I am very much a newb, please bear with me. I have a two whole scripts on the completed side of my wish list.

Now I am studying up on addins, because they seem to have some mouse functionality I desire in my next project.  In studying the sample codes I have come across these lines in several examples:

def __init__(self):
        self.enabled = True
        self.cursor = 3

What is "self.cursor" and what do the values correspond to?  I have seen it set to 1, 3 and 5.

Thanks,
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
T__WayneWhitley
Frequent Contributor
See the below for the tool class - apparently the code changes the cursor appearance when you interact using the tool, 3 is a crosshair...

Tool class
Guide Books » ArcGIS Desktop Python add-ins
http://resources.arcgis.com/en/help/main/10.2/index.html#/Tool/014p00000027000000/

View solution in original post

0 Kudos
2 Replies
T__WayneWhitley
Frequent Contributor
See the below for the tool class - apparently the code changes the cursor appearance when you interact using the tool, 3 is a crosshair...

Tool class
Guide Books » ArcGIS Desktop Python add-ins
http://resources.arcgis.com/en/help/main/10.2/index.html#/Tool/014p00000027000000/
0 Kudos
RickRice
New Contributor
Thank you!!  I couldn't get that to come up in my searches.
0 Kudos