MCPcopy Index your code
hub / github.com/rawpython/remi / main

Method main

examples/resizable_panes.py:213–229  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

appendMethod · 0.95
add_paneMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected