From c88eabdccebcb1567acc8879e9c0841be0b9bc0e Mon Sep 17 00:00:00 2001 From: Radislav Date: Tue, 25 Nov 2025 13:50:40 +0300 Subject: [PATCH] =?UTF-8?q?feat:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BC=D0=B5=D1=82=D0=BE=D0=B4=D0=B0?= =?UTF-8?q?=20is=5Fitem=5Fvisible=20=D0=B2=20=D0=BD=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=B3=D0=B0=D1=86=D0=B8=D0=BE=D0=BD=D0=BD=D1=83=D1=8E=20=D0=BF?= =?UTF-8?q?=D0=B0=D0=BD=D0=B5=D0=BB=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Добавлен метод для проверки видимости элемента без исключений - Возвращает boolean значение для условных проверок --- components/navbar_component.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/navbar_component.py b/components/navbar_component.py index 1d97eaf..4a8b318 100644 --- a/components/navbar_component.py +++ b/components/navbar_component.py @@ -178,7 +178,8 @@ class NavigationPanelComponent(BaseComponent): # Проверяем лист это или начало поддерева if "v-treeview-node--leaf" in node_class_attr: if debug: - print(f'[{level}][{index}] {node_text} (LEAF, Expanded: {is_expanded}, Has Children: {has_children})') + leaf_msg = f'[{level}][{index}] {node_text} (LEAF, Expanded: {is_expanded}' + print(f"{leaf_msg}, Has Children: {has_children})") print("-----------------------------------------") else: # Проверяем, является ли узел раскрытым @@ -205,7 +206,8 @@ class NavigationPanelComponent(BaseComponent): if debug: # Выводим информацию об узле - print(f'[{level}][{index}] {edited_node_text} (NODE, Expanded: {is_expanded}, Has Children: {has_children})') + node_msg = f'[{level}][{index}] {edited_node_text} (NODE, Expanded: {is_expanded}' + print(f"{node_msg}, Has Children: {has_children})") print("-----------------------------------------") # Рекурсивный вызов для дочерних элементов