Ejemplo n.º 1
0
def keyhint(qtbot, config_stub, key_config_stub):
    """Fixture to initialize a KeyHintView."""
    config_stub.val.colors.keyhint.suffix.fg = 'yellow'
    keyhint = KeyHintView(0, None)
    qtbot.add_widget(keyhint)
    assert keyhint.text() == ''
    return keyhint
Ejemplo n.º 2
0
def keyhint(qtbot, config_stub, key_config_stub):
    """Fixture to initialize a KeyHintView."""
    config_stub.val.colors.keyhint.suffix.fg = 'yellow'
    keyhint = KeyHintView(0, None)
    qtbot.add_widget(keyhint)
    assert keyhint.text() == ''
    return keyhint
Ejemplo n.º 3
0
def keyhint(qtbot, config_stub, key_config_stub):
    """Fixture to initialize a KeyHintView."""
    config_stub.data = {
        "colors": {"keyhint.fg": "white", "keyhint.fg.suffix": "yellow", "keyhint.bg": "black"},
        "fonts": {"keyhint": "Comic Sans"},
        "ui": {"show-keyhints": True},
    }
    keyhint = KeyHintView(0, None)
    qtbot.add_widget(keyhint)
    assert keyhint.text() == ""
    return keyhint
Ejemplo n.º 4
0
def keyhint(qtbot, config_stub, key_config_stub):
    """Fixture to initialize a KeyHintView."""
    config_stub.data = {
        'colors': {
            'keyhint.fg': 'white',
            'keyhint.fg.suffix': 'yellow',
            'keyhint.bg': 'black'
        },
        'fonts': {'keyhint': 'Comic Sans'},
        'ui': {'keyhint-blacklist': ''},
    }
    keyhint = KeyHintView(0, None)
    qtbot.add_widget(keyhint)
    assert keyhint.text() == ''
    return keyhint
Ejemplo n.º 5
0
def keyhint(qtbot, config_stub, key_config_stub):
    """Fixture to initialize a KeyHintView."""
    config_stub.data = {
        'colors': {
            'keyhint.fg': 'white',
            'keyhint.fg.suffix': 'yellow',
            'keyhint.bg': 'black'
        },
        'fonts': {'keyhint': 'Comic Sans'},
        'ui': {'keyhint-blacklist': '', 'status-position': 'bottom'},
    }
    keyhint = KeyHintView(0, None)
    qtbot.add_widget(keyhint)
    assert keyhint.text() == ''
    return keyhint
Ejemplo n.º 6
0
def keyhint(qtbot, keyhint_config, key_config_stub):
    """Fixture to initialize a KeyHintView."""
    keyhint = KeyHintView(0, None)
    qtbot.add_widget(keyhint)
    assert keyhint.text() == ''
    return keyhint
Ejemplo n.º 7
0
def keyhint(qtbot, keyhint_config, key_config_stub):
    """Fixture to initialize a KeyHintView."""
    keyhint = KeyHintView(0, None)
    qtbot.add_widget(keyhint)
    assert keyhint.text() == ''
    return keyhint