From 680b72b5e9699705f7143fafbb29668c23967357 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Fri, 13 Oct 2023 20:09:12 -0300 Subject: [PATCH] [Print][PCB][Fixed][No Interposer] Debian 12 issues --- src/pcbnew_do | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/pcbnew_do b/src/pcbnew_do index 2737f13..f08cf9e 100755 --- a/src/pcbnew_do +++ b/src/pcbnew_do @@ -371,17 +371,13 @@ def print_layers_n(cfg, id_pcbnew, print_dialog_keys): id_print_dialog = open_print_dialog(cfg, print_dialog_keys, id_pcbnew) # Open the gtk print dialog wait_point(cfg) - # Two possible options here: + # KiCad 5: Two possible options here: # 1) With WM we usually get "Exclude PCB edge ..." selected # 2) Without WM we usually get "Color" selected # In both cases sending 4 Shit+Tab moves us to one of the layer columns. # From there Return prints and Escape closes the window. - keys = ['key', 'shift+Tab', 'shift+Tab', 'shift+Tab', 'Return'] - if not cfg.ki7: - keys.insert(1, 'shift+Tab') - elif cfg.kicad_version >= KICAD_VERSION_7_0_8: - # We get the close button instead of Print - keys.insert(-1, 'Right') + # KiCad 6/7 on Debian 12: we get a button, going right selects the Print button + keys = ['key', 'shift+Tab', 'shift+Tab', 'shift+Tab', 'shift+Tab', 'Right', 'Right', 'Return'] xdotool(keys) # Check it is open id2 = wait_for_window('Printer dialog', '^(Print|%s)$' % cfg.print_dlg_name, skip_id=id_print_dialog)