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