Reputation
946
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
11 23
Newest
 Tumbleweed
Impact
~62k people reached

  • 0 posts edited
  • 0 helpful flags
  • 50 votes cast
Feb
24
awarded  Tumbleweed
Feb
17
asked ArcGIS: What is the behavior of ToolValidator class and checkboxes?
Feb
17
comment python script tool validation checkboxes to radio boxes?
Responding to your first question .... instead of a global variable, use an instance attribute: in init put self.lastChecked = 0 . Afterward, just refer to the variable with its fully qualified name self.lastChecked. In initializeParamters() You can initialize it with value different from what it was created with, or you can just manipulate it as you wish in updateParameters(). Global variables seem to work OK in the tool script, but I would avoid them in the ToolValidator() class.
Jan
11
awarded  Popular Question
Oct
26
awarded  Popular Question
Sep
22
awarded  Notable Question
Sep
18
awarded  Popular Question
Jul
15
awarded  Popular Question
Apr
16
awarded  Notable Question
Jan
7
awarded  Yearling
Nov
25
awarded  Popular Question
Sep
27
awarded  Notable Question
Sep
21
awarded  Notable Question
Jul
2
awarded  Curious
Jan
7
awarded  Yearling
Nov
29
awarded  Popular Question
Nov
21
awarded  Popular Question
Nov
18
comment In arcpy, if I subclass the arcpy Spatial Reference class, what is the object argument I would use in the subclass definition?
... that is, of course, the setter, getter, and deleter attributes. Sorry.
Nov
18
comment In arcpy, if I subclass the arcpy Spatial Reference class, what is the object argument I would use in the subclass definition?
Exactly what I was after. Very cool! BTW, I was also getting 'can't set attribute' errors with the initializing of instance attributes, because I was using the older Python 2.5 property decorator syntax with fget and fset as inner functions, which doesn't use the newer setattr, getattr, and delattr attributes. I guess I have some catching up to do.
Nov
18
accepted In arcpy, if I subclass the arcpy Spatial Reference class, what is the object argument I would use in the subclass definition?