Exemple #1
0
def test_action9(self):
    handler, actions = c()
    checkAction(actions,
                action=actions.get_action("Something"),
                tooltip=None,
                stock_id="gtk-something",
                label="Something",
                action_type=actions.PidaRadioAction)
    act = actions.get_action("Something")
    assert_equal(0, act.get_property("value"))
    assert_equal(2, len(act.get_group()))
    assert act in act.get_group()
Exemple #2
0
def test_action9(self):
    handler, actions = c()
    checkAction(
        actions,
        action = actions.get_action("Something"),
        tooltip = None,
        stock_id = "gtk-something",
        label = "Something",
        action_type = actions.PidaRadioAction
    )
    act = actions.get_action("Something")
    assert_equal(0, act.get_property("value"))
    assert_equal(2, len(act.get_group()))
    assert act in act.get_group()
Exemple #3
0
def test_action4(self):
    handler, actions = c()
    checkAction(
        actions,
        action=actions.get_action("another_name"),
        tooltip=None,
        stock_id="gtk-another",
        label="Another Name",
    )
Exemple #4
0
def test_action4(self):
    handler, actions = c()
    checkAction(
        actions,
        action = actions.get_action("another_name"),
        tooltip = None,
        stock_id = "gtk-another",
        label = "Another Name",
    )
Exemple #5
0
def get_action(actions, name):
    return actions.get_action("foo+action-handler+%s" % name)
Exemple #6
0
def get_action(actions, name):
    return actions.get_action("foo+action-handler+%s" % name)