Skip to content

Commit

Permalink
Bugfix due to breaking change in qtpy/PyQt5
Browse files Browse the repository at this point in the history
  • Loading branch information
dprohe committed Jan 29, 2025
1 parent 7d10406 commit 92b11b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sdynpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
read_modal_fit_data, ModalTest)
from . import doc

__version__ = "0.14.1"
__version__ = "0.14.2"

# Pull things in for easier access
SdynpyArray = array.SdynpyArray
Expand Down
4 changes: 3 additions & 1 deletion src/sdynpy/core/sdynpy_geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,9 @@ def add_menu_bar(self) -> None:
super().add_menu_bar()

# Get the file menu
file_menu = self.main_menu.findChildren(QMenu)[0]
file_menu = [child for child in self.main_menu.children()
if child.__class__.__name__ == 'QMenu'
and child.title() == 'File'][0]
self.save_animation_action = pvqt.plotting.QAction('Save Animation')
self.save_animation_action.triggered.connect(self.save_animation_from_action)
file_menu.insertAction(file_menu.actions()[1], self.save_animation_action)
Expand Down

0 comments on commit 92b11b3

Please sign in to comment.