MCPcopy Create free account
hub / github.com/dtmilano/AndroidViewClient / __smallStr__

Method __smallStr__

src/com/dtmilano/android/viewclient.py:1220–1233  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1218 image.crop(box).save(filename, _format)
1219
1220 def __smallStr__(self):
1221 # 2to3
1222 # __str = str("View[", 'utf-8', 'replace')
1223 __str = "View["
1224 if "class" in self.map:
1225 __str += " class=" + self.map['class']
1226 __str += " id=%s" % self.getId()
1227 __str += " ] parent="
1228 if self.parent and "class" in self.parent.map:
1229 __str += "%s" % self.parent.map["class"]
1230 else:
1231 __str += "None"
1232
1233 return __str
1234
1235 def __tinyStr__(self):
1236 # 2to3

Calls 1

getIdMethod · 0.95

Tested by 1

__getClassAndIdMethod · 0.64