(self, layout)
| 191 | Clock.schedule_once(add_button) |
| 192 | |
| 193 | def showcase_anchorlayout(self, layout): |
| 194 | |
| 195 | def change_anchor(self, *l): |
| 196 | if not layout.get_parent_window(): |
| 197 | return |
| 198 | anchor_x = ('left', 'center', 'right') |
| 199 | anchor_y = ('top', 'center', 'bottom') |
| 200 | if layout.anchor_x == 'left': |
| 201 | layout.anchor_y = anchor_y[anchor_y.index(layout.anchor_y) - 1] |
| 202 | layout.anchor_x = anchor_x[anchor_x.index(layout.anchor_x) - 1] |
| 203 | |
| 204 | Clock.schedule_once(change_anchor, 1) |
| 205 | Clock.schedule_once(change_anchor, 1) |
| 206 | |
| 207 | def _update_clock(self, dt): |
| 208 | self.time = time() |
nothing calls this directly
no outgoing calls
no test coverage detected