aboutsummaryrefslogtreecommitdiff
path: root/tests/client/script_menuchangestest.py
blob: 67f2ee072d382aa0bde86b5a762204c8a63348be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/python2.7

import time
from menuscript import Script, ActionList, MENU_OBJECT_PATH

al = ActionList(MENU_OBJECT_PATH)
al.appendItem("Menu0", "Menu0")
al.appendItem("Menu1", "Menu1")
al.removeItem(0) # remove Menu0
al.removeItem(0) # remove Menu1

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