def init(self): with ui.VFix(): ui.Widget(flex=1) with ui.HFix(flex=2): ui.Widget(flex=1) Drawing(flex=2) ui.Widget(flex=1) ui.Widget(flex=1)
def init(self): self.layer_list = [] with ui.VFix(flex=18): PanelLayers(css_class="title") with ui.VSplit(flex=1): with flx.VBox() as self.__cont: self._cont = flx.VFix(flex=1) self.pnl_dump = PanelDump(0, flex=1) self.pnl_send = PanelSend()
def init(self): with ui.HSplit(style='min-height:300px') as self.widget: self.plot1 = ui.BokehWidget.from_plot(p1, title='Scatter') with ui.VFix(title='Sine'): Controls() with ui.Widget(style='overflow-y:auto;', flex=1): self.plot2 = ui.BokehWidget.from_plot(p2) self.plot3 = ui.BokehWidget.from_plot(p3)
def init(self): with ui.HFix(): with ui.HFix(): Deep1() Deep2() Deep3() with ui.VFix(): Deep4() Deep5() Deep6()
def init(self): with ui.VBox(): ui.Label(text='Widgets in BoxPanels in a widget in a vbox') with ui.Widget(flex=1): with ui.VFix(): with ui.HFix(): Red(flex=1) Red(flex=1) with ui.HFix(): Red(flex=1) Red(flex=1)