MCPcopy Create free account
hub / github.com/alpha2phi/python-apps / showcase_anchorlayout

Method showcase_anchorlayout

gui-apps/app_kivy.py:193–205  ·  view source on GitHub ↗
(self, layout)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected