Set whether the polygon is closed. Parameters ---------- closed : bool True if the polygon is closed
(self, closed)
| 1267 | return self._closed |
| 1268 | |
| 1269 | def set_closed(self, closed): |
| 1270 | """ |
| 1271 | Set whether the polygon is closed. |
| 1272 | |
| 1273 | Parameters |
| 1274 | ---------- |
| 1275 | closed : bool |
| 1276 | True if the polygon is closed |
| 1277 | """ |
| 1278 | if self._closed == bool(closed): |
| 1279 | return |
| 1280 | self._closed = bool(closed) |
| 1281 | self.set_xy(self.get_xy()) |
| 1282 | self.stale = True |
| 1283 | |
| 1284 | def get_xy(self): |
| 1285 | """ |