Exemplo n.º 1
0
 def __init__(self, *args, data=None, columns=(), sort=None):
     # NOTE: debounce select events.
     HTMLWidget.__init__(self,
                         *args,
                         title=self.__class__.__name__,
                         debounce_events=('select', ))
     self._set_styles()
     self._reset_table(data=data, columns=columns, sort=sort)
Exemplo n.º 2
0
def test_probe_layout(qtbot):
    positions = staggered_positions(32)
    channel_ids = {0: np.arange(1, 11, 2),
                   1: np.arange(7, 15, 2)}

    layout = probe_layout(positions, channel_ids)
    w = HTMLWidget()
    w.set_body(layout)
    w.show()
    qtbot.waitForWindowShown(w)
    qtbot.addWidget(w)
Exemplo n.º 3
0
def test_probe_layout(qtbot):
    positions = staggered_positions(32)
    channel_ids = {0: np.arange(1, 11, 2), 1: np.arange(7, 15, 2)}

    layout = probe_layout(positions, channel_ids)
    w = HTMLWidget()
    w.set_body(layout)
    w.show()
    qtbot.waitForWindowShown(w)
    qtbot.addWidget(w)