@@ -166,27 +166,20 @@ def _create_intro_frame(self) -> None:
166
166
intro_frame = ttk .Frame (self .main_frame )
167
167
intro_frame .pack (side = tk .TOP , fill = "x" , expand = False )
168
168
169
- self . _add_explanation_text ( intro_frame )
169
+ # Add vehicle image first to the right side
170
170
self ._add_vehicle_image (intro_frame )
171
171
172
+ # Add explanation text to the left side
173
+ self ._add_explanation_text (intro_frame )
174
+
172
175
def _add_explanation_text (self , parent : ttk .Frame ) -> None :
173
176
"""Add explanation text to the parent frame."""
174
- explanation_text = _ ("Please configure properties of the vehicle components.\n " )
175
- explanation_text += _ ("Labels for optional properties are displayed in gray text.\n " )
176
- explanation_text += _ ("Scroll down to ensure that you do not overlook any properties.\n " )
177
-
178
177
explanation_frame = ttk .Frame (parent )
179
- explanation_frame .pack (side = tk .TOP , fill = tk .X , padx = (10 , 10 ), pady = (10 , 0 ))
180
-
181
- explanation_label = ttk .Label (
182
- explanation_frame , text = explanation_text , wraplength = WINDOW_WIDTH_PIX - VEHICLE_IMAGE_WIDTH_PIX , justify = tk .LEFT
183
- )
184
- explanation_label .configure (style = "bigger.TLabel" )
185
- explanation_label .pack (side = tk .LEFT , anchor = tk .NW )
178
+ explanation_frame .pack (side = tk .LEFT , fill = tk .BOTH , expand = True , padx = (10 , 10 ), pady = (10 , 0 ))
186
179
187
180
# Add UI complexity combobox
188
181
complexity_frame = ttk .Frame (explanation_frame )
189
- complexity_frame .pack (side = tk .RIGHT , anchor = tk .NE , padx = (0 , 10 ))
182
+ complexity_frame .pack (side = tk .TOP , anchor = tk .NW , padx = (0 , 10 ))
190
183
191
184
complexity_label = ttk .Label (complexity_frame , text = _ ("GUI Complexity:" ))
192
185
complexity_label .pack (side = tk .LEFT , padx = (0 , 5 ))
@@ -210,6 +203,16 @@ def _add_explanation_text(self, parent: ttk.Frame) -> None:
210
203
),
211
204
)
212
205
206
+ explanation_text = _ ("Please configure properties of the vehicle components.\n " )
207
+ explanation_text += _ ("Labels for optional properties are displayed in gray text.\n " )
208
+ explanation_text += _ ("Scroll down to ensure that you do not overlook any properties.\n " )
209
+
210
+ explanation_label = ttk .Label (
211
+ explanation_frame , text = explanation_text , wraplength = WINDOW_WIDTH_PIX - VEHICLE_IMAGE_WIDTH_PIX , justify = tk .LEFT
212
+ )
213
+ explanation_label .configure (style = "bigger.TLabel" )
214
+ explanation_label .pack (side = tk .TOP , anchor = tk .NW , pady = self .calculate_scaled_padding_tuple (10 , 0 ))
215
+
213
216
def _on_complexity_changed (self , _event : Optional [tk .Event ] = None ) -> None :
214
217
"""Handle complexity combobox change."""
215
218
old_gui_complexity = ProgramSettings .get_setting ("gui_complexity" )
0 commit comments