code: def getWidth(self):
          '''
          Gets the width.
          '''
  
          if self.useUiAutomator:
              return self.map['bounds'][1][0] - self.map['bounds'][0][0]
          else:
              try:
                  return int(self.map[self.widthProperty])
              except:
                  return f getWidth(self):
          '''
          Gets the width.
          '''
  
          if self.useUiAutomator:
              return self.map['bounds'][1][0] - self.map['bounds'][0][0]
          else:
              try:
                  return int(self.map[self.widthProperty])
              except:
                  return 0
docs: Gets the width.