-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathCustomUI.xml
More file actions
51 lines (47 loc) · 1.86 KB
/
CustomUI.xml
File metadata and controls
51 lines (47 loc) · 1.86 KB
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
<!--
Custom UI definition. Please refer to the links below for detail.
- https://docs.microsoft.com/en-us/openspecs/office_standards/ms-customui/edc80b05-9169-4ff7-95ee-03af067f35b1
- https://docs.microsoft.com/en-us/previous-versions/office/developer/office-2007/aa338202(v%3doffice.12)
-->
<customUI onLoad="RibbonOnLoad" xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon startFromScratch="false">
<tabs>
<tab id="PyAddinTab" label="PyAddin">
<group id="yourGroup1" label="Your Group 1">
<!-- MODIFY YOUR RIBBON CONTROL HERE -->
<button id="sample1" label="Sample 1"
imageMso="AppointmentColor3" size="large"
onAction="CB_Sample_1"
screentip="Sample Button"
supertip="Example 1: simple data transferring between VBA and Python." />
<button id="sample2" label="Sample 2"
imageMso="AppointmentColor6" size="large"
onAction="CB_Sample_2"
screentip="Sample Button"
supertip="Example 2: do anythng win32com can in Python script." />
</group>
<group id="yourGroup2" label="Your Group 2">
<!-- MORE GROUPS IF NECESSARY -->
</group>
<!-- DON'T CHANGE THE FOLLOWING ITEMS -->
<group id="settingsGroup" label="Setting">
<editBox id="interpreter" label="Python Interpreter"
onChange="CB_SetInterpreter"
getText="CB_GetInterpreter"
screentip="Interpreter"
supertip="The full path to python.exe." />
<button id="refresh" label="Refresh Settings"
imageMso="RefreshWebView" size="normal"
onAction="CB_Refresh"
screentip="Refresh"
supertip="Reload all settings." />
<button id="about" label="About"
imageMso="Help" size="normal"
onAction="CB_About"
screentip="About"
supertip="About this Add-in, e.g., features, version." />
</group>
</tab>
</tabs>
</ribbon>
</customUI>