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

Method change_anchor

gui-apps/app_kivy.py:195–204  ·  view source on GitHub ↗
(self, *l)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected