|
34 | 34 | from MethodicConfigurator.frontend_tkinter_base import ProgressWindow
|
35 | 35 | from MethodicConfigurator.frontend_tkinter_base import BaseWindow
|
36 | 36 | from MethodicConfigurator.frontend_tkinter_base import RichText
|
37 |
| -from MethodicConfigurator.frontend_tkinter_base import get_font_family |
| 37 | +from MethodicConfigurator.frontend_tkinter_base import get_widget_font |
38 | 38 |
|
39 | 39 | from MethodicConfigurator.frontend_tkinter_directory_selection import VehicleDirectorySelectionWidgets
|
40 | 40 |
|
@@ -194,6 +194,11 @@ def __init__(self, current_file: str, flight_controller: FlightController,
|
194 | 194 | # Bind the close_connection_and_quit function to the window close event
|
195 | 195 | self.root.protocol("WM_DELETE_WINDOW", self.close_connection_and_quit)
|
196 | 196 |
|
| 197 | + style = ttk.Style() |
| 198 | + style.map('readonly.TCombobox', fieldbackground=[('readonly', 'white')]) |
| 199 | + style.map('readonly.TCombobox', selectbackground=[('readonly', 'white')]) |
| 200 | + style.map('readonly.TCombobox', selectforeground=[('readonly', 'black')]) |
| 201 | + |
197 | 202 | self.__create_conf_widgets(version)
|
198 | 203 |
|
199 | 204 | # Create a DocumentationFrame object for the Documentation Content
|
@@ -238,11 +243,11 @@ def __create_conf_widgets(self, version: str):
|
238 | 243 | "files in the selected vehicle directory\nIt will automatically "
|
239 | 244 | "advance to the next file once the current file is uploaded to the "
|
240 | 245 | "fight controller",
|
241 |
| - state='readonly', width=45) |
| 246 | + state='readonly', width=45, style='readonly.TCombobox') |
242 | 247 | self.file_selection_combobox.bind("<<ComboboxSelected>>", self.on_param_file_combobox_change)
|
243 | 248 | self.file_selection_combobox.pack(side=tk.TOP, anchor=tk.NW, pady=(4, 0))
|
244 | 249 |
|
245 |
| - self.legend_frame(config_subframe, get_font_family(file_selection_label)) |
| 250 | + self.legend_frame(config_subframe, get_widget_font(file_selection_label)['family']) |
246 | 251 |
|
247 | 252 | image_label = BaseWindow.put_image_in_label(config_frame, LocalFilesystem.application_logo_filepath())
|
248 | 253 | image_label.pack(side=tk.RIGHT, anchor=tk.NE, padx=(4, 4), pady=(4, 0))
|
|
0 commit comments