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

pythonaddin button returns no value

$
0
0
I want user interaction with screen and return pixel value upon click. For this, i am using pythonaddin for return value. Following is code which performs nothing while i click on it. It should return feature class which i can later use for subsequent processed. Any suggestions how to make it work?

Code:

class Val(object):
    """Implementation for Pythonaddin_addin.genW (Button)"""
    def __init__(self):
        self.enabled = True
        self.checked = False
    def onClick(self):
        geog = arcpy.GetParameterAsText(0)
        ras = arcpy.PointToRaster_conversion(geog, "ID", "in_memory/ras", "MAXIMUM", "", 30)
        pass


Viewing all articles
Browse latest Browse all 2485

Trending Articles