-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathobxml-help
57 lines (35 loc) · 1.24 KB
/
obxml-help
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
class Obmenu:
Obmenu.newMenu()
Initializes a new menu.
Obmenu.newPipe()
Initializes a new pipe.
Obmenu.loadMenu(filename)
Loads an existing menu file.
NOTE: It's necessary to call one of the above before doing anything else.
Obmenu.saveMenu(filename)
Obmenu.printXml()
Obmenu.getXml()
___________________________
menu: The ID of the menu you want to modify. If None, the root menu will
be modified.
n: The position of the item in its submenu, starting in 0.
Obmenu.removeItem(menu, n)
Obmenu.removeMenu(menu)
Obmenu.createSep(menum, n)
If n not specified, separator will be appended
Obmenu.createItem(menu, label, action, execute, n)
If n not specified, item will be appended
Obmenu.createLink(menu, mid)
If n not specified, link will be appended
Obmenu.createPipe(menu, mid, label, execute)
If n not specified, pipe will be appended
Obmenu.createMenu(menu, label, mid)
If n not specified, menu will be appended
Obmenu.interchange(menu, n1, n2)
Obmenu.setItemProps(menu, n, label, action, exe)
Obmenu.setMenuLabel(menu, label)
Obmenu.getMenuLabel(menu)
Obmenu.setRefLabel(parent, link_id, label)
parent: ID of the parent menu
menu_id
Obmenu.setRefId(parent, menu_id, new_id)