(self)
| 211 | pass |
| 212 | |
| 213 | def main(self): |
| 214 | self.floatingPaneContainer = FloatingPanesContainer(width=800, height=600, margin='0px auto') |
| 215 | self.floatingPaneContainer.append(gui.Label("Click a panel to select, than drag and stretch")) |
| 216 | |
| 217 | pane1 = gui.Container(width=100, height=200) |
| 218 | pane1.style['background-color'] = 'yellow' |
| 219 | self.floatingPaneContainer.add_pane(pane1, 10, 100) |
| 220 | pane1.append(gui.Label("Panel1, drag and stretch")) |
| 221 | |
| 222 | pane2 = gui.VBox(width=100, height=200) |
| 223 | pane2.style['background-color'] = 'green' |
| 224 | self.floatingPaneContainer.add_pane(pane2, 150, 100) |
| 225 | pane2.append(gui.Label("Panel2, drag and stretch")) |
| 226 | |
| 227 | |
| 228 | # returning the root widget |
| 229 | return self.floatingPaneContainer |
| 230 | |
| 231 | |
| 232 |
nothing calls this directly
no test coverage detected