From e012d82b5afa9d0cbefbaa76161cb24270daaabc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Cab=C3=A9?= Date: Thu, 23 Oct 2025 16:49:11 +0200 Subject: [PATCH 1/2] menuconfig: remove unused global variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit _menu_scroll is declared as global but never used in _jump_to. Removing the unnecessary declaration. Signed-off-by: Benjamin Cabé --- menuconfig.py | 1 - 1 file changed, 1 deletion(-) diff --git a/menuconfig.py b/menuconfig.py index 9c5732a..07c8576 100755 --- a/menuconfig.py +++ b/menuconfig.py @@ -1148,7 +1148,6 @@ def _jump_to(node): global _cur_menu global _shown global _sel_node_i - global _menu_scroll global _show_all global _parent_screen_rows From 83a4bf5647b74b02886002e532128d143792147f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Cab=C3=A9?= Date: Thu, 23 Oct 2025 16:51:20 +0200 Subject: [PATCH 2/2] guiconfig: fix ttk.PanedWindow orient MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed orient=VERTICAL to orient="vertical". VERTICAL wasn't imported; ttk.Panedwindow expects a string. Signed-off-by: Benjamin Cabé --- guiconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guiconfig.py b/guiconfig.py index 0594ba6..124a0b1 100755 --- a/guiconfig.py +++ b/guiconfig.py @@ -495,7 +495,7 @@ def _create_kconfig_tree_and_desc(parent): # Panedwindow and the Treeview. This code is shared between the main window # and the jump-to dialog. - panedwindow = ttk.Panedwindow(parent, orient=VERTICAL) + panedwindow = ttk.Panedwindow(parent, orient="vertical") tree_frame, tree = _create_kconfig_tree(panedwindow) desc_frame, desc = _create_kconfig_desc(panedwindow)