From 33c0bae1005aff33c5e9a32183b29f53ee840231 Mon Sep 17 00:00:00 2001 From: Damian Mendroch <76686945+drocheam@users.noreply.github.com> Date: Thu, 3 Jul 2025 09:37:20 +0200 Subject: [PATCH 1/3] Exclude vtk version 9.5 in dependencies --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index d6cad3fe..effefc57 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,6 +2,6 @@ requires = [ "numpy>=2.0.0rc2,<3", "setuptools", - "vtk>=9", + "vtk>=9,<9.5", "wheel" ] From b740bf45610e97631d089e2460e8fe7fb1057850 Mon Sep 17 00:00:00 2001 From: Damian Mendroch <76686945+drocheam@users.noreply.github.com> Date: Tue, 8 Jul 2025 10:48:49 +0200 Subject: [PATCH 2/3] Fix scene tool bar size and spacing --- tvtk/pyface/ui/qt4/decorated_scene.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tvtk/pyface/ui/qt4/decorated_scene.py b/tvtk/pyface/ui/qt4/decorated_scene.py index b4994d9e..db924798 100644 --- a/tvtk/pyface/ui/qt4/decorated_scene.py +++ b/tvtk/pyface/ui/qt4/decorated_scene.py @@ -134,6 +134,8 @@ def _get_tool_bar_manager(self): """ Returns the tool_bar_manager for this scene. """ tbm = ToolBarManager( *self.actions ) + tbm.image_size = (32, 20) + tbm.show_tool_names = False return tbm From 2fae21258cd75bafe227925b7889269a37439a35 Mon Sep 17 00:00:00 2001 From: Damian Mendroch Date: Tue, 8 Jul 2025 11:07:11 +0200 Subject: [PATCH 3/3] Revert "Fix scene tool bar size and spacing" This reverts commit b740bf45610e97631d089e2460e8fe7fb1057850. --- tvtk/pyface/ui/qt4/decorated_scene.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tvtk/pyface/ui/qt4/decorated_scene.py b/tvtk/pyface/ui/qt4/decorated_scene.py index db924798..b4994d9e 100644 --- a/tvtk/pyface/ui/qt4/decorated_scene.py +++ b/tvtk/pyface/ui/qt4/decorated_scene.py @@ -134,8 +134,6 @@ def _get_tool_bar_manager(self): """ Returns the tool_bar_manager for this scene. """ tbm = ToolBarManager( *self.actions ) - tbm.image_size = (32, 20) - tbm.show_tool_names = False return tbm