What does [missing] on ArcGIS 10.2 for Desktop Python addin mean? [duplicate]

المشرف العام

Administrator
طاقم الإدارة
This question already has an answer here:


I need to load all layer names into a combo box. I did the same using esri site. But the tool is showing [missing].

import arcpy import pythonaddins class LayersComboBoxClass(object): """Implementation for Tools_addin.combobox (ComboBox)""" def __init__(self): self.editable = True self.enabled = True def onFocus(self, focused): # When the combo box has focus, update the combo box with the list of layer names. if focused: self.mxd = arcpy.mapping.MapDocument('current') # Edit position in code layers = arcpy.mapping.ListLayers(self.mxd) self.items = ["item1",item2]

أكثر...
 
أعلى