code: def on_close(self, event):
      print("closing!")
  
file_path: vispy/examples/tutorial/app/app_events.py
imports: from vispy import gloo, app
label_desc: Use image node_id 2 for calling the Canvas obj's underlying member method code with example usage: obj.on_close(event) without return types