Changeset 1798 for branches/newfiller/python/asaplotbase.py
- Timestamp:
- 08/02/10 10:51:45 (14 years ago)
- Location:
- branches/newfiller
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/newfiller
- Property svn:mergeinfo changed
/branches/alma (added) merged: 1781-1783
- Property svn:mergeinfo changed
-
branches/newfiller/python/asaplotbase.py
r1766 r1798 282 282 283 283 284 #def get_region(self):285 #pos = []286 #print "Please select the bottom/left point"287 #pos.append(self.figure.ginput(n=1, show_clicks=False)[0])288 #print "Please select the top/right point"289 #pos.append(self.figure.ginput(n=1, show_clicks=False)[0])290 #return pos291 292 #def get_point(self):293 #print "Please select the point"294 #pt = self.figure.ginput(n=1, show_clicks=False)295 #if pt:296 #return pt[0]297 #else:298 #return None284 def get_region(self): 285 pos = [] 286 print "Please select the bottom/left point" 287 pos.append(self.figure.ginput(n=1, show_clicks=False)[0]) 288 print "Please select the top/right point" 289 pos.append(self.figure.ginput(n=1, show_clicks=False)[0]) 290 return pos 291 292 def get_point(self): 293 print "Please select the point" 294 pt = self.figure.ginput(n=1, show_clicks=False) 295 if pt: 296 return pt[0] 297 else: 298 return None 299 299 300 300 def region(self):
Note: See TracChangeset
for help on using the changeset viewer.