@@ -192,10 +192,12 @@ def reset_dialog(self, widget=None):
192
192
self ["start" ].grid (row = row , column = 3 , sticky = tk .W )
193
193
self ["end" ].grid (row = row , column = 4 , sticky = tk .W )
194
194
self ["step" ].grid (row = row , column = 5 , sticky = tk .W )
195
+ row += 1
195
196
elif loop_type == "Foreach" :
196
197
frame .columnconfigure (5 , weight = 0 )
197
198
self ["variable" ].grid (row = row , column = 2 , sticky = tk .W )
198
199
self ["values" ].grid (row = row , column = 3 , sticky = tk .EW )
200
+ row += 1
199
201
frame .columnconfigure (3 , weight = 1 )
200
202
elif loop_type == "For rows in table" :
201
203
frame .columnconfigure (3 , weight = 0 )
@@ -210,10 +212,19 @@ def reset_dialog(self, widget=None):
210
212
if "empty" not in op :
211
213
self ["query-value" ].grid (row = row , column = 5 , sticky = tk .EW )
212
214
frame .columnconfigure (5 , weight = 1 )
215
+ row += 1
213
216
elif loop_type == "For systems in the database" :
214
217
row += 1
215
- self ["criteria" ].grid (row = row , column = 1 , columnspan = 3 , sticky = tk .NSEW )
216
- frame .rowconfigure (row , weight = 1 , minsize = 100 )
218
+ # self["criteria"].grid(row=row, column=1, columnspan=3, sticky=tk.NSEW)
219
+ # frame.rowconfigure(row, weight=1, minsize=100)
220
+ # row += 1
221
+
222
+ self ["where system name" ].grid (
223
+ row = row , column = 0 , columnspan = 2 , sticky = tk .EW
224
+ )
225
+ choice = self ["where system name" ].get ()
226
+ if choice != "is anything" :
227
+ self ["system name" ].grid (row = row , column = 2 , columnspan = 2 , sticky = tk .EW )
217
228
row += 1
218
229
219
230
self ["default configuration" ].grid (
@@ -224,12 +235,11 @@ def reset_dialog(self, widget=None):
224
235
self ["configuration name" ].grid (
225
236
row = row , column = 2 , columnspan = 2 , sticky = tk .EW
226
237
)
227
- frame .columnconfigure (3 , weight = 1 )
228
238
row += 1
239
+ frame .columnconfigure (3 , weight = 1 )
229
240
self ["directory name" ].grid (row = row , column = 0 , columnspan = 3 , sticky = tk .W )
230
241
else :
231
242
raise RuntimeError ("Don't recognize the loop_type {}" .format (loop_type ))
232
- row += 1
233
243
self ["errors" ].grid (row = row , column = 0 , columnspan = 4 , sticky = tk .W )
234
244
row += 1
235
245
frame .columnconfigure (0 , minsize = 40 )
0 commit comments