Skip to content

Commit a5f0bab

Browse files
authored
Update widgets.py
1 parent 5b53f1a commit a5f0bab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/matplotlib/widgets.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ class TextBox(AxesWidget):
993993
submit_observers = _api.deprecated("3.4")(property(
994994
lambda self: self._observers.callbacks['submit']))
995995
DIST_FROM_LEFT = _api.deprecated("3.5")(property(
996-
lambda self: self.DIST_FROM_LEFT))
996+
lambda self: self._DIST_FROM_LEFT))
997997

998998
def __init__(self, ax, label, initial='',
999999
color='.95', hovercolor='1', label_pad=.01,
@@ -1017,9 +1017,9 @@ def __init__(self, ax, label, initial='',
10171017
The horizontal location of the text.
10181018
"""
10191019
super().__init__(ax)
1020-
1021-
self.DIST_FROM_LEFT = .05
1022-
1020+
1021+
self._DIST_FROM_LEFT = .05
1022+
10231023
self._text_position = _api.check_getitem(
10241024
{"left": 0.05,
10251025
"center": 0.5,

0 commit comments

Comments
 (0)