@@ -150,6 +150,7 @@ def __init__(self, current_file: str, flight_controller: FlightController, local
150
150
self .tempcal_imu_progress_window : ProgressWindow
151
151
self .file_upload_progress_window : ProgressWindow
152
152
self .last_time_asked_to_save : float = 0
153
+ self .gui_complexity = ProgramSettings .get_setting ("gui_complexity" )
153
154
154
155
self .root .title (
155
156
_ ("Amilcar Lucas's - ArduPilot methodic configurator " ) + __version__ + _ (" - Parameter file editor and uploader" )
@@ -178,7 +179,8 @@ def __init__(self, current_file: str, flight_controller: FlightController, local
178
179
self .stage_progress_bar = StageProgressBar (
179
180
self .main_frame , self .local_filesystem .configuration_phases , last_step_nr
180
181
)
181
- self .stage_progress_bar .pack (side = tk .TOP , fill = "x" , expand = False , pady = (2 , 2 ), padx = (4 , 4 ))
182
+ if self .gui_complexity != "simple" :
183
+ self .stage_progress_bar .pack (side = tk .TOP , fill = "x" , expand = False , pady = (2 , 2 ), padx = (4 , 4 ))
182
184
183
185
# Create a DocumentationFrame object for the Documentation Content
184
186
self .documentation_frame = DocumentationFrame (self .main_frame , self .local_filesystem , self .current_file )
@@ -206,15 +208,18 @@ def __create_conf_widgets(self, version: str) -> None:
206
208
directory_selection_frame = VehicleDirectorySelectionWidgets (
207
209
self , config_subframe , self .local_filesystem , self .local_filesystem .vehicle_dir , destroy_parent_on_open = False
208
210
)
209
- directory_selection_frame .container_frame .pack (side = tk .LEFT , fill = "x" , expand = False , padx = (4 , 6 ))
211
+ if self .gui_complexity != "simple" :
212
+ directory_selection_frame .container_frame .pack (side = tk .LEFT , fill = "x" , expand = False , padx = (4 , 6 ))
210
213
211
214
# Create a new frame inside the config_subframe for the intermediate parameter file selection label and combobox
212
215
file_selection_frame = ttk .Frame (config_subframe )
213
- file_selection_frame .pack (side = tk .LEFT , fill = "x" , expand = False , padx = (6 , 6 ))
216
+ if self .gui_complexity != "simple" :
217
+ file_selection_frame .pack (side = tk .LEFT , fill = "x" , expand = False , padx = (6 , 6 ))
214
218
215
219
# Create a label for the Combobox
216
220
file_selection_label = ttk .Label (file_selection_frame , text = _ ("Current intermediate parameter file:" ))
217
- file_selection_label .pack (side = tk .TOP , anchor = tk .NW ) # Add the label to the top of the file_selection_frame
221
+ if self .gui_complexity != "simple" :
222
+ file_selection_label .pack (side = tk .TOP , anchor = tk .NW ) # Add the label to the top of the file_selection_frame
218
223
219
224
# Create Combobox for intermediate parameter file selection
220
225
self .file_selection_combobox = AutoResizeCombobox (
@@ -232,7 +237,8 @@ def __create_conf_widgets(self, version: str) -> None:
232
237
style = "readonly.TCombobox" ,
233
238
)
234
239
self .file_selection_combobox .bind ("<<ComboboxSelected>>" , self .on_param_file_combobox_change )
235
- self .file_selection_combobox .pack (side = tk .TOP , anchor = tk .NW , pady = (4 , 0 ))
240
+ if self .gui_complexity != "simple" : # only display the combobox when not simple
241
+ self .file_selection_combobox .pack (side = tk .TOP , anchor = tk .NW , pady = (4 , 0 ))
236
242
237
243
font_family , _font_size = get_widget_font_family_and_size (file_selection_label )
238
244
self .legend_frame (config_subframe , font_family )
@@ -307,11 +313,12 @@ def __create_parameter_area_widgets(self) -> None:
307
313
variable = self .show_only_differences ,
308
314
command = self .on_show_only_changed_checkbox_change ,
309
315
)
310
- only_changed_checkbox .pack (side = tk .TOP , anchor = tk .NW )
311
- show_tooltip (
312
- only_changed_checkbox ,
313
- _ ("Toggle to show only parameters that will change if/when uploaded to the flight controller" ),
314
- )
316
+ if self .gui_complexity != "simple" :
317
+ only_changed_checkbox .pack (side = tk .TOP , anchor = tk .NW )
318
+ show_tooltip (
319
+ only_changed_checkbox ,
320
+ _ ("Toggle to show only parameters that will change if/when uploaded to the flight controller" ),
321
+ )
315
322
316
323
annotate_params_checkbox = ttk .Checkbutton (
317
324
checkboxes_frame ,
@@ -322,14 +329,15 @@ def __create_parameter_area_widgets(self) -> None:
322
329
"annotate_docs_into_param_files" , self .annotate_params_into_files .get ()
323
330
),
324
331
)
325
- annotate_params_checkbox .pack (side = tk .TOP , anchor = tk .NW )
326
- show_tooltip (
327
- annotate_params_checkbox ,
328
- _ (
329
- "Annotate ArduPilot parameter documentation metadata into the intermediate parameter files\n "
330
- "The files will be bigger, but all the existing parameter documentation will be included inside"
331
- ),
332
- )
332
+ if self .gui_complexity != "simple" :
333
+ annotate_params_checkbox .pack (side = tk .TOP , anchor = tk .NW )
334
+ show_tooltip (
335
+ annotate_params_checkbox ,
336
+ _ (
337
+ "Annotate ArduPilot parameter documentation metadata into the intermediate parameter files\n "
338
+ "The files will be bigger, but all the existing parameter documentation will be included inside"
339
+ ),
340
+ )
333
341
334
342
# Create upload button
335
343
upload_selected_button = ttk .Button (
0 commit comments