code: def __getX(self):
          '''
          Gets the View X coordinate
          '''
  
          if DEBUG_COORDS:
              print >>sys.stderr, "getX(%s %s ## %s)" % (self.getClass(), self.getId(), self.getUniqueId())
          x = 0
  
          if self.useUiAutomator:
              x = self.map['bounds'][0][0]
          else:
              try:
                  if GET_VISIBILITY_PROPERTY in self.map and self.map[GET_VISIBILITY_PROPERTY] == 'VISIBLE':
                      _x = int(self.map[self.leftProperty])
                      if DEBUG_COORDS: print >>sys.stderr, "   getX: VISIBLE adding %d" % _x
                      x += _x
              except:
                  warnings.warn("View %s has no '%s' property" % (self.getId(), self.leftProperty))
  
          if DEBUG_COORDS: print >>sys.stderr, "   getX: returning %d" % (x)
          return f __getX(self):
          '''
          Gets the View X coordinate
          '''
  
          if DEBUG_COORDS:
              print >>sys.stderr, "getX(%s %s ## %s)" % (self.getClass(), self.getId(), self.getUniqueId())
          x = 0
  
          if self.useUiAutomator:
              x = self.map['bounds'][0][0]
          else:
              try:
                  if GET_VISIBILITY_PROPERTY in self.map and self.map[GET_VISIBILITY_PROPERTY] == 'VISIBLE':
                      _x = int(self.map[self.leftProperty])
                      if DEBUG_COORDS: print >>sys.stderr, "   getX: VISIBLE adding %d" % _x
                      x += _x
              except:
                  warnings.warn("View %s has no '%s' property" % (self.getId(), self.leftProperty))
  
          if DEBUG_COORDS: print >>sys.stderr, "   getX: returning %d" % (x)
          return x
docs: Gets the View X coordinate