File tree Expand file tree Collapse file tree
pica/keithley/k6517b/High_Resistance Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626
2727 # 3. Install System Dependencies (Required for Tkinter/Matplotlib on Linux)
2828 - name : Install Tkinter System Libs
29- run : sudo apt-get update && sudo apt-get install -y python3-tk
29+ run : |
30+ sudo rm -f /etc/apt/sources.list.d/azure-cli.list
31+ sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
32+ sudo apt-get update && sudo apt-get install -y python3-tk
3033
3134 # 4. Install Your Python Dependencies
3235 - name : Install dependencies
Original file line number Diff line number Diff line change @@ -354,11 +354,18 @@ def create_widgets(self):
354354 right_panel = tk .Frame (main_pane , bg = 'white' )
355355 main_pane .add (right_panel , weight = 3 )
356356 top_controls_frame = ttk .Frame (left_panel )
357- left_panel .add (top_controls_frame , weight = 0 )
357+
358+ # Create the console frame first to initialize the logger, but don't add it to the layout yet.
359+ console_pane = self .create_console_frame (left_panel )
360+
361+ # Create and populate the top frame, which can now safely log messages.
358362 self .create_info_frame (top_controls_frame )
359363 self .create_input_frame (top_controls_frame )
360- console_pane = self .create_console_frame (left_panel )
364+
365+ # Add the frames to the layout in the correct visual order.
366+ left_panel .add (top_controls_frame , weight = 0 )
361367 left_panel .add (console_pane , weight = 1 )
368+
362369 self .create_graph_frame (right_panel )
363370
364371 def create_header (self ):
You can’t perform that action at this time.
0 commit comments