Ignore:
Timestamp:
08/02/10 10:51:45 (14 years ago)
Author:
Malte Marquarding
Message:

merge -r1774:1797 from alma to newfiller

Location:
branches/newfiller
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/newfiller

  • branches/newfiller/python/asaplotbase.py

    r1766 r1798  
    282282
    283283
    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 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
     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 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
    299299
    300300    def region(self):
Note: See TracChangeset for help on using the changeset viewer.