File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change
1
+ Deprecations
2
+ ````````````
3
+
4
+ The (unused and always None) ``NavigationToolbar2QT.adj_window `` attribute is
5
+ deprecated.
Original file line number Diff line number Diff line change @@ -726,16 +726,18 @@ def _init_toolbar(self):
726
726
labelAction = self .addWidget (self .locLabel )
727
727
labelAction .setVisible (True )
728
728
729
- # reference holder for subplots_adjust window
730
- self .adj_window = None
731
-
732
729
# Esthetic adjustments - we need to set these explicitly in PyQt5
733
730
# otherwise the layout looks different - but we don't want to set it if
734
731
# not using HiDPI icons otherwise they look worse than before.
735
732
if is_pyqt5 ():
736
733
self .setIconSize (QtCore .QSize (24 , 24 ))
737
734
self .layout ().setSpacing (12 )
738
735
736
+ @cbook .deprecated ("3.1" )
737
+ @property
738
+ def adj_window (self ):
739
+ return None
740
+
739
741
if is_pyqt5 ():
740
742
# For some reason, self.setMinimumHeight doesn't seem to carry over to
741
743
# the actual sizeHint, so override it instead in order to make the
You can’t perform that action at this time.
0 commit comments