From ebb6351abd8736965b6552c974d1210278544a0f Mon Sep 17 00:00:00 2001 From: Zueuk Date: Sun, 12 Jul 2026 18:45:33 +0300 Subject: [PATCH 1/2] Fix column stretch in Concept Window "text augmentations" tab --- modules/ui/CtkConceptWindowView.py | 4 ++-- modules/ui/PySide6ConceptWindowView.py | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/ui/CtkConceptWindowView.py b/modules/ui/CtkConceptWindowView.py index 60c0f57fe..0eb269969 100644 --- a/modules/ui/CtkConceptWindowView.py +++ b/modules/ui/CtkConceptWindowView.py @@ -91,8 +91,8 @@ def __init__( # text augmentation tab text_aug_frame = ctk.CTkScrollableFrame(tabview.add("text augmentation"), fg_color="transparent") text_aug_frame.grid_columnconfigure(0, weight=0) - text_aug_frame.grid_columnconfigure(1, weight=0) - text_aug_frame.grid_columnconfigure(2, weight=0) + text_aug_frame.grid_columnconfigure(1, weight=1) + text_aug_frame.grid_columnconfigure(2, weight=1) text_aug_frame.grid_columnconfigure(3, weight=1) self.build_text_augmentation_tab(text_aug_frame, controller, text_ui_state) text_aug_frame.pack(fill="both", expand=1) diff --git a/modules/ui/PySide6ConceptWindowView.py b/modules/ui/PySide6ConceptWindowView.py index bbe6f6dff..022a65643 100644 --- a/modules/ui/PySide6ConceptWindowView.py +++ b/modules/ui/PySide6ConceptWindowView.py @@ -127,6 +127,8 @@ def __init__( text_frame = QWidget() text_scroll.setWidget(text_frame) pyside6_components._layout(text_frame).setContentsMargins(_pad, _pad, _pad, _pad) + pyside6_components._layout(text_frame).setColumnStretch(1, 1) + pyside6_components._layout(text_frame).setColumnStretch(2, 1) pyside6_components._layout(text_frame).setColumnStretch(3, 1) self.build_text_augmentation_tab(text_frame, controller, text_ui_state) pyside6_components._pack_form(text_frame) From 03794518fbbbcd22b4419eef9d00b6fbd06d2023 Mon Sep 17 00:00:00 2001 From: Zueuk Date: Tue, 14 Jul 2026 01:20:35 +0300 Subject: [PATCH 2/2] Fix mouse wheel not scrolling over the histogram in Concept Window "statistics" tab --- modules/ui/PySide6ConceptWindowView.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/ui/PySide6ConceptWindowView.py b/modules/ui/PySide6ConceptWindowView.py index 022a65643..4b9274f59 100644 --- a/modules/ui/PySide6ConceptWindowView.py +++ b/modules/ui/PySide6ConceptWindowView.py @@ -22,6 +22,11 @@ ) +class NonZoomingFigureCanvas(FigureCanvasQTAgg): + def wheelEvent(self, event): + event.ignore() + + class PySide6ConceptWindowView(BaseConceptWindowView, QDialog): def __init__( self, @@ -149,7 +154,7 @@ def __init__( plt.set_loglevel('WARNING') self.bucket_fig, self.bucket_ax = plt.subplots(figsize=(7, 3)) - self.canvas = FigureCanvasQTAgg(self.bucket_fig) + self.canvas = NonZoomingFigureCanvas(self.bucket_fig) self.bucket_fig.tight_layout() self.bucket_fig.subplots_adjust(bottom=0.15)