-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.yaml
276 lines (246 loc) · 5.96 KB
/
default.yaml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
tabs:
# - Tab 5
- Tab 1
- Tab 2
- Tab 3
- Tab 4
frames:
- name: frame1
tab: Tab 4
row: 1
title: This is frame 1
toggled: True
- name: frame2
tab: Tab 4
row: 0
title: This is frame 2
- name: frame2a
frame: frame2
title: This is frame 2a
kwargs:
borderwidth: 0
padx: 0
pady: 0
- name: frame3
tab: Tab 4
title: Where's frame 3
- name: frameA
tab: Tab 1
row: 1
title: this is frameA in Tab 5
toggled: True
inputwidgets:
- name: input_0
label: Some bool
tab: Tab 1
row: 0
inputtype: bool
defaultval: 1
ctrlelem:
- frame: frameA
activewhen: ['', 0]
outputdef:
AMR-Wind: incflo.bool0
help: This is input_0
- name: input_1
label: input_1 description
frame: frameA
inputtype: int
defaultval: 1
visible: True
outputdef:
AMR-Wind: incflo.int1
help: |
This is input_1
same as incflo.int1
- name: input_2
label: "list input "
frame: frameA
inputtype: [int, float, str]
defaultval: [1, 2.0, stuff]
outputdef:
AMR-Wind: incflo.list1
- name: input_3
label: "list of options"
tab: Tab 1
inputtype: str
optionlist: ['optionA', 'optionB']
defaultval: 'optionA'
- name: input_4
label: "string input"
tab: Tab 1
inputtype: str
- name: label1
label: "This is some label"
labelonly: True
tab: Tab 1
- name: input_5
label: Calculated from input_1
tab: Tab 1
inputtype: int
defaultval: 1
visible: True
- name: input_6
label: Textbox1
tab: Tab 1
inputtype: textbox
defaultval: Default text
visible: True
entryopt:
width: 20
height: 10
bg: 'beige'
#font: ["Times New Roman", 15]
- name: bool1
label: bool 1
tab: Tab 2
inputtype: bool
defaultval: 1
ctrlelem:
- input: listbox1
- frame: frameA
- name: bool2
label: bool 2
tab: Tab 2
inputtype: bool
defaultval: 1
- name: bool3
label: bool 3
tab: Tab 2
inputtype: bool
defaultval: 1
- name: mergedbool1
label:
tab: Tab 2
inputtype: mergedboollist
mergedboollist:
- ['bool1', 'on1', 'off1']
- ['bool2', 'on2', 'off2']
- ['bool3', 'on3', 'off3']
outputdef:
AMR-Wind: incflo.mergedboollist1
- name: listbox1
label: Choose your option
tab: Tab 2
inputtype: listbox
optionlist: ['frame1', 'frame2', 'optionC', 'filename1', 'optE', 'bool1']
defaultval: optionC
listboxopt:
selectmode: multiple
height: 4
ctrlelem:
- frame: frame1
activewhen: ['frame1', 1]
- frame: frame2
activewhen: ['frame2', 0]
- input: filename1
activewhen: ['filename1', 1]
- input: input_2
activewhen: ['filename1', 1]
- name: filename1
label: Choose a file
tab: Tab 2
inputtype: filename
fileopenopt:
selecttype: directory
- name: label2
label: "Some more helpful \"advice\""
labelonly: True
tab: Tab 1
buttons:
- name: button1
text: mirror
frame: frameA
col: 1
command: "partial(self.mirrorinputs, \"input_1\", \"input_5\")"
- name: button
text: Update Plot
tab: Tab 1
command: self.updateplot
help: Press to update plot
- name: button
text: Exit
tab: Tab 1
row: 9
command: self.quit
- name: pullvars
text: pull vars
tab: Tab 2
command: "partial(pullvals, self.inputvars, statuslabel=self.statusbar)"
- name: openpopup
text: Open pop up vals
tab: Tab 2
command: "partial(self.launchpopupwin, 'popup2')" #self.popupwin
# - name: printpopup
# text: Print pop up vals
# tab: Tab 2
# command: self.printpuwindict
popupwindow:
popup1:
title: Window title # optional
datakeyname: popup1_name # optional
loadonstart: False # optional
inputwidgets:
- name: popup1_name
label: Name of stuff
inputtype: str
defaultval: name
- name: popup1_input0
label: Some bool
inputtype: bool
defaultval: 1
ctrlelem:
- input: popup1_input1
- name: popup1_input1
label: input_1 description
inputtype: int
defaultval: 123
- name: popup1_input2
label: input_2 description
inputtype: [float, float, float]
defaultval: [-1, 0, 1]
popup2:
title: Window title 2 # optional
datakeyname: popup2_name # optional
loadonstart: True # optional
inputwidgets:
- name: popup2_name
label: Name of stuff
inputtype: str
defaultval: name
- name: popup2_input0
label: Some bool
inputtype: bool
defaultval: 1
buttons:
- name: pullvals
text: Pull vals
command: "partial(self.savethenexec, 'pullvals(self.master.inputvars, self.master.statusbar)')"
#command: "partial(pullvals, parent.inputvars, statuslabel=parent.statusbar)"
listboxpopupwindows:
- name: listboxpopup1
label: List of stuff
tab: Tab 3
row: 0 # optional
popupinput: popup1
setlistboxfromdict:
listboxpopup1:
item1:
popup1_name: name0
popup1_input0: 0
popup1_input1: '10'
popup1_input2: [0, 2, 1]
item2:
popup1_name: name1
popup1_input0: 1
popup1_input1: 20
popup1_input2: ['1.1', '2.001', '1']
setfromdict:
incflo.bool0: 1
incflo.int1: 123
incflo.list1: [-1, 3.1, stuffB]
incflo.mergedboollist1: ['on1', 'off2', 'off3']
# Add in any additional yaml files with includes section.
# ------------
#includes:
# - include1.yaml