Commit eeb246e
committed
fix(gui): normalize tk_scaling in ProgressWindow and defer focus_force to prevent segfault
- Normalize tk_scaling with * 72.0/96.0 and add max(1.0, ...) floor in
ProgressWindow to match BaseWindow._get_dpi_scaling_factor behaviour
- Use calculate_scaled_geometry() in VehicleProjectCreatorWindow instead
of inline scaling to keep geometry logic centralized
- Defer focus_force() via after(1, ...) in PopupWindow to avoid a
segfault in Python 3.9 on Linux/X11 in headless CI environments
- Call update_idletasks() before winfo_width/height in GUI test to
prevent flaky 1px assertions before geometry is realized
Addresses review comments from PR #13941 parent 31fb9a2 commit eeb246e
File tree
4 files changed
+7
-5
lines changed- ardupilot_methodic_configurator
- tests
4 files changed
+7
-5
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
139 | | - | |
140 | | - | |
| 138 | + | |
141 | 139 | | |
142 | 140 | | |
143 | 141 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
118 | 120 | | |
119 | 121 | | |
120 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| 161 | + | |
161 | 162 | | |
162 | 163 | | |
163 | 164 | | |
| |||
0 commit comments