Skip to content

Commit f7adfed

Browse files
update
1 parent 89434ac commit f7adfed

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

.github/workflows/python-app.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ jobs:
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

pica/keithley/k6517b/High_Resistance/IV_K6517B_GUI.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff 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):

0 commit comments

Comments
 (0)