(*t)
| 118 | def showcase_floatlayout(self, layout): |
| 119 | |
| 120 | def add_button(*t): |
| 121 | if not layout.get_parent_window(): |
| 122 | return |
| 123 | if len(layout.children) > 5: |
| 124 | layout.clear_widgets() |
| 125 | layout.add_widget(Builder.load_string(''' |
| 126 | #:import random random.random |
| 127 | Button: |
| 128 | size_hint: random(), random() |
| 129 | pos_hint: {'x': random(), 'y': random()} |
| 130 | text: |
| 131 | 'size_hint x: {} y: {}\\n pos_hint x: {} y: {}'.format(\ |
| 132 | self.size_hint_x, self.size_hint_y, self.pos_hint['x'],\ |
| 133 | self.pos_hint['y']) |
| 134 | ''')) |
| 135 | Clock.schedule_once(add_button, 1) |
| 136 | Clock.schedule_once(add_button) |
| 137 | |
| 138 | def showcase_boxlayout(self, layout): |
nothing calls this directly
no test coverage detected