Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/matplotlib/tests/test_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from unittest import mock

import matplotlib as mpl
from matplotlib.backend_bases import DrawEvent, KeyEvent, MouseEvent
from matplotlib.backend_bases import DrawEvent, KeyEvent, MouseEvent, ResizeEvent
import matplotlib.colors as mcolors
import matplotlib.widgets as widgets
import matplotlib.pyplot as plt
Expand Down Expand Up @@ -1097,6 +1097,8 @@ def test_TextBox(ax, toolbar):

assert text_change_event.call_count == 3

ResizeEvent("resize_event", ax.figure.canvas)._process() # smoke test


def test_RadioButtons(ax):
radio = widgets.RadioButtons(ax, ('Radio 1', 'Radio 2', 'Radio 3'))
Expand Down
1 change: 0 additions & 1 deletion lib/matplotlib/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1718,7 +1718,6 @@ def _click(self, event):
self.cursor_index = self.text_disp._char_index_at(event.x)
self._rendercursor()

@_call_with_reparented_event
def _resize(self, event):
self.stop_typing()

Expand Down
Loading