From 283c14643e002145451959687aef38572322346e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Piel?= Date: Tue, 27 Jan 2026 16:28:19 +0100 Subject: [PATCH] [fix] FIBSEM tab XRC caused errors with wxPython 4.1+ The commit f8f78700d6d6 ([fix] update xrc files) changed some of the sizer flags which turned out to not be useful. On wxPython 4.1 (eg, Ubuntu 24.04) and later, these flags cause errors, like this: 15:43:12: XRC error: 281: horizontal alignment flag "wxALIGN_RIGHT" has no effect inside a horizontal box sizer, remove it and consider inserting a spacer instead 15:43:12: XRC error: 326: horizontal alignment flag "wxALIGN_RIGHT" has no effect inside a horizontal box sizer, remove it and consider inserting a spacer instead 15:43:12: XRC error: 1013: vertical alignment flag "wxALIGN_CENTER_VERTICAL" has no effect inside a vertical box sizer, remove it and consider inserting a spacer instead => Remove these unneeded flags. --- src/odemis/gui/main_xrc.py | 5 ++--- src/odemis/gui/xmlh/resources/panel_tab_fibsem.xrc | 7 +++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/odemis/gui/main_xrc.py b/src/odemis/gui/main_xrc.py index c106d74a83..813bb6384f 100644 --- a/src/odemis/gui/main_xrc.py +++ b/src/odemis/gui/main_xrc.py @@ -9752,7 +9752,7 @@ def __init_resources(): - wxLEFT|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL + wxLEFT|wxALIGN_CENTER_VERTICAL 82 @@ -9797,7 +9797,7 @@ def __init_resources(): - wxLEFT|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL + wxLEFT|wxALIGN_CENTER_VERTICAL 82 @@ -10484,7 +10484,6 @@ def __init_resources(): 1 - wxALIGN_CENTER_VERTICAL diff --git a/src/odemis/gui/xmlh/resources/panel_tab_fibsem.xrc b/src/odemis/gui/xmlh/resources/panel_tab_fibsem.xrc index d6c6554798..7a7444d289 100644 --- a/src/odemis/gui/xmlh/resources/panel_tab_fibsem.xrc +++ b/src/odemis/gui/xmlh/resources/panel_tab_fibsem.xrc @@ -280,7 +280,7 @@ - wxLEFT|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL + wxLEFT|wxALIGN_CENTER_VERTICAL 82 @@ -325,7 +325,7 @@ - wxLEFT|wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL + wxLEFT|wxALIGN_CENTER_VERTICAL 82 @@ -1012,7 +1012,6 @@ 1 - wxALIGN_CENTER_VERTICAL @@ -1250,4 +1249,4 @@ #333333 - \ No newline at end of file +