code: def OnClose(self, event):
      self.Destroy()
  
file_path: matplotlib/galleries/examples/user_interfaces/mathtext_wx_sgskip.py
imports: from io import BytesIO
  import wx
  import numpy
  from matplotlib.backends.backend_wx import NavigationToolbar2Wx
  from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg
  from matplotlib.figure import Figure
label_desc: Use image node_id 6 for calling the CanvasFrame obj's underlying member method code with example usage: obj.OnClose(event) without return types