示例#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()
示例#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()
示例#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",
    )
示例#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",
    )
示例#5
0
def get_action(actions, name):
    return actions.get_action("foo+action-handler+%s" % name)
示例#6
0
def get_action(actions, name):
    return actions.get_action("foo+action-handler+%s" % name)