Exemplo n.º 1
0
def keyhint_widget_bottom():
    keyhint_bottom = keyhint_widget.instance().y() + keyhint_widget.instance().height()
    window_bottom = mainwindow.instance().height()
    assert keyhint_bottom == window_bottom
Exemplo n.º 2
0
def keyhint_widget_above_bar():
    keyhint_bottom = keyhint_widget.instance().y() + keyhint_widget.instance().height()
    bar_top = bar.instance().y()
    assert keyhint_bottom == bar_top
Exemplo n.º 3
0
def keyhint_widget_not_visible():
    assert not keyhint_widget.instance().isVisible()
Exemplo n.º 4
0
def keyhint_widget_contains(command):
    assert command in keyhint_widget.instance().text()
Exemplo n.º 5
0
def wait_for_keyhint_widget(qtbot):
    with qtbot.waitSignal(keyhint_widget.instance()._show_timer.timeout, 100):
        pass