(self)
| 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 |