(self, layout)
| 136 | Clock.schedule_once(add_button) |
| 137 | |
| 138 | def showcase_boxlayout(self, layout): |
| 139 | |
| 140 | def add_button(*t): |
| 141 | if not layout.get_parent_window(): |
| 142 | return |
| 143 | if len(layout.children) > 5: |
| 144 | layout.orientation = 'vertical'\ |
| 145 | if layout.orientation == 'horizontal' else 'horizontal' |
| 146 | layout.clear_widgets() |
| 147 | layout.add_widget(Builder.load_string(''' |
| 148 | Button: |
| 149 | text: self.parent.orientation if self.parent else '' |
| 150 | ''')) |
| 151 | Clock.schedule_once(add_button, 1) |
| 152 | Clock.schedule_once(add_button) |
| 153 | |
| 154 | def showcase_gridlayout(self, layout): |
| 155 |
nothing calls this directly
no outgoing calls
no test coverage detected