@@ -62,11 +62,6 @@ class ComponentEditorWindow(ComponentEditorWindowBase):
62
62
"""
63
63
def __init__ (self , version , local_filesystem : LocalFilesystem = None ):
64
64
ComponentEditorWindowBase .__init__ (self , version , local_filesystem )
65
- style = ttk .Style ()
66
- style .configure ("comb_input_invalid.TCombobox" , fieldbackground = "red" )
67
- style .configure ("comb_input_valid.TCombobox" , fieldbackground = "white" )
68
- style .configure ("entry_input_invalid.TEntry" , fieldbackground = "red" )
69
- style .configure ("entry_input_valid.TEntry" , fieldbackground = "white" )
70
65
71
66
def update_json_data (self ):
72
67
super ().update_json_data ()
@@ -89,16 +84,6 @@ def update_json_data(self):
89
84
if 'TOW max Kg' not in self .data ['Components' ]['Frame' ]['Specifications' ]:
90
85
self .data ['Components' ]['Frame' ]['Specifications' ]['TOW max Kg' ] = 1
91
86
92
- def set_component_value_and_update_ui (self , path : tuple , value : str ):
93
- data_path = self .data ['Components' ]
94
- for key in path [:- 1 ]:
95
- data_path = data_path [key ]
96
- data_path [path [- 1 ]] = value
97
- entry = self .entry_widgets [path ]
98
- entry .delete (0 , tk .END )
99
- entry .insert (0 , value )
100
- entry .config (state = "disabled" )
101
-
102
87
def set_vehicle_type_and_version (self , vehicle_type : str , version : str ):
103
88
self .set_component_value_and_update_ui (('Flight Controller' , 'Firmware' , 'Type' ), vehicle_type )
104
89
if version :
0 commit comments