Skip to content

Commit

Permalink
Merge pull request #158 from monodera/u/monodera/resize_event
Browse files Browse the repository at this point in the history
Fix the deprecation error for `resize_event`
  • Loading branch information
olebole authored Feb 8, 2024
2 parents 7c6d111 + 8ac6f7a commit e41ad9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyraf/MplCanvasAdapter.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import matplotlib
matplotlib.use('TkAgg') # set backend
import matplotlib.backends.backend_tkagg as tkagg
from matplotlib.backend_bases import ResizeEvent
from .Ptkplot import hideTkCursor
from .Ptkplot import FullWindowCursor
import tkinter
Expand Down Expand Up @@ -90,7 +91,7 @@ def resize_widget(self, event):
self._tkcanvas.create_image(int(width / 2),
int(height / 2),
image=self._tkphoto)
self.resize_event()
self.callbacks.process('resize_event', ResizeEvent('resize_event', self))

def flush(self):

Expand Down

0 comments on commit e41ad9f

Please sign in to comment.