Exemplo n.º 1
0
    def init(self):

        with ui.HSplit():
            ui.Widget(style='background:#f00')
            with ui.VSplit():
                ui.Widget(style='background:#0f0')
                with ui.HSplit():
                    ui.Widget(style='background:#ff0')
                    with ui.VSplit():
                        ui.Widget(style='background:#f0f')
                        with ui.HSplit():
                            ui.Widget(style='background:#0ff')
                            ui.Widget(style='background:#00f')
Exemplo n.º 2
0
 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()
Exemplo n.º 3
0
    def init(self):

        with ui.VSplit():
            with ui.HFix(flex=0):
                self.previous = ui.Button(text="<-", disabled=True, flex=1)
                self.content = ui.Label(flex=0)
                self.next = ui.Button(text="->", disabled=True, flex=1)
            with ui.HSplit(flex=1, spacing=20):
                self.configure = flx.Widget(css_class="configure", flex=0)
                with ui.HFix(flex=1):
                    self.visjs = VisJS(
                        style="background-color: #dddddd;",
                        flex=1,
                    )
        self.refresh()
Exemplo n.º 4
0
 def init(self, v=0):
     self.pkt = None
     with ui.VBox():
         with ui.HBox():
             self.lbl_repr = flx.LineEdit(flex=1, css_class="pkt_dump", disabled=1)
             self.btn_toggle = flx.Button(text="-")
             self.btn_save = flx.Button(text='save pcap')
         with ui.VBox(flex=1) as self._cont:
             with ui.VSplit(flex=1, parent=None) as self.splt_v:
                 pass
             with ui.HSplit(flex=1) as self.splt_h:
                 self.txt_show = ui.MultiLineEdit(css_class="pkt_dump", flex=4)
                 self.txt_hex = ui.MultiLineEdit(css_class="pkt_dump", flex=6)
         self.splt = self.splt_h
         self.toggle_layout(v)    
Exemplo n.º 5
0
    def init(self):
        with ui.VBox():
            with ui.HBox(flex=0):
                self.zoom_in_button = ui.Button(flex=0,
                                                text='+',
                                                title='zoom_in')
                self.zoom_label = ui.Label(
                    flex=0,
                    text='1x',
                    title='zoom_label',
                    style='min-width:40px;text-align:center;')
                self.zoom_out_button = ui.Button(flex=0,
                                                 text='-',
                                                 title='zoom_out')
                self.clear_button = ui.Button(flex=0,
                                              text='clear',
                                              title='clear')
                ui.Widget(flex=1)
            with ui.VSplit(flex=1) as self.vsplit:
                self.drawing = Drawing(flex=3)
                ui.Widget(flex=1)

        self.drawing.set_transform()