aboutsummaryrefslogtreecommitdiff
path: root/tests/client/script_actiongrouptest.py
blob: 2af4841888ff2c0fa2d76427a4ce619a7a04e7fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env python3

import time
from gi.repository import GLib
from menuscript import Script, ActionList, MENU_OBJECT_PATH

al = ActionList(MENU_OBJECT_PATH)
al.appendItem("Menu0", "Menu0Act")
al.appendItem("Menu1", "Menu1Act")
al.removeItem("1", "Menu1Act")

t = Script.create(al)
t.run()