File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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 @@ -724,9 +724,6 @@ def _init_toolbar(self):
724724 labelAction = self .addWidget (self .locLabel )
725725 labelAction .setVisible (True )
726726
727- # reference holder for subplots_adjust window
728- self .adj_window = None
729-
730727 # Esthetic adjustments - we need to set these explicitly in PyQt5
731728 # otherwise the layout looks different - but we don't want to set it if
732729 # not using HiDPI icons otherwise they look worse than before.
@@ -739,6 +736,11 @@ def _init_toolbar(self):
739736 def buttons (self ):
740737 return {}
741738
739+ @cbook .deprecated ("3.1" )
740+ @property
741+ def adj_window (self ):
742+ return None
743+
742744 if is_pyqt5 ():
743745 # For some reason, self.setMinimumHeight doesn't seem to carry over to
744746 # the actual sizeHint, so override it instead in order to make the
You can’t perform that action at this time.
0 commit comments