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()
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()
def test_action4(self): handler, actions = c() checkAction( actions, action=actions.get_action("another_name"), tooltip=None, stock_id="gtk-another", label="Another Name", )
def test_action4(self): handler, actions = c() checkAction( actions, action = actions.get_action("another_name"), tooltip = None, stock_id = "gtk-another", label = "Another Name", )
def get_action(actions, name): return actions.get_action("foo+action-handler+%s" % name)