Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions modules/ui/CtkConceptWindowView.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
9 changes: 8 additions & 1 deletion modules/ui/PySide6ConceptWindowView.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
)


class NonZoomingFigureCanvas(FigureCanvasQTAgg):
def wheelEvent(self, event):
event.ignore()


class PySide6ConceptWindowView(BaseConceptWindowView, QDialog):
def __init__(
self,
Expand Down Expand Up @@ -127,6 +132,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)
Expand All @@ -147,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)

Expand Down