Skip to content
Snippets Groups Projects
Commit 2e0b7427 authored by Martyn Gigg's avatar Martyn Gigg
Browse files

Remove deprecated toolbar attributes

As far as I can tell these were leftover attributes from
a very old version of the matplotlib NavigationToolbarQT
class that have now been deprecated in matplotlib 3.1 and
set as readonly. A search back through matplotlib 1.5
suggests that they were not used and 1.5 is the minimum we
are required to support.
parent e8d36cd2
No related branches found
No related tags found
No related merge requests found
...@@ -76,7 +76,6 @@ class WorkbenchNavigationToolbar(NavigationToolbar2QT): ...@@ -76,7 +76,6 @@ class WorkbenchNavigationToolbar(NavigationToolbar2QT):
if tooltip_text is not None: if tooltip_text is not None:
a.setToolTip(tooltip_text) a.setToolTip(tooltip_text)
self.buttons = {}
# Add the x,y location widget at the right side of the toolbar # Add the x,y location widget at the right side of the toolbar
# The stretch factor is 1 which means any resizing of the toolbar # The stretch factor is 1 which means any resizing of the toolbar
# will resize this label instead of the buttons. # will resize this label instead of the buttons.
...@@ -88,9 +87,6 @@ class WorkbenchNavigationToolbar(NavigationToolbar2QT): ...@@ -88,9 +87,6 @@ class WorkbenchNavigationToolbar(NavigationToolbar2QT):
labelAction = self.addWidget(self.locLabel) labelAction = self.addWidget(self.locLabel)
labelAction.setVisible(True) labelAction.setVisible(True)
# reference holder for subplots_adjust window
self.adj_window = None
# Adjust icon size or they are too small in PyQt5 by default # Adjust icon size or they are too small in PyQt5 by default
dpi_ratio = QtWidgets.QApplication.instance().desktop().physicalDpiX() / 100 dpi_ratio = QtWidgets.QApplication.instance().desktop().physicalDpiX() / 100
self.setIconSize(QtCore.QSize(24 * dpi_ratio, 24 * dpi_ratio)) self.setIconSize(QtCore.QSize(24 * dpi_ratio, 24 * dpi_ratio))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment