code: def configure_event(self, widget, event=None):
      if widget.window is None:
          return
      try:
          del self.renderer
      except AttributeError:
          pass
      w, h = widget.window.get_size()
      if w == 1 or h == 1:
          return  # empty fig
  
      # compute desired figure size in inches
      dpival = self.figure.dpi
      winch = w / dpival
      hinch = h / dpival
      self.figure.set_size_inches(winch, hinch, forward=False)
      self._need_redraw = True
      self.resize_event()
      return True
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  import matplotlib
  from matplotlib.cbook import warn_deprecated
  from matplotlib.backends.backend_agg import FigureCanvasAgg
  from matplotlib.backends.backend_gtk import gtk, _BackendGTK, FigureCanvasGTK, FigureManagerGTK, NavigationToolbar2GTK, backend_version, error_msg_gtk, PIXELS_PER_INCH
  from matplotlib.backends._gtkagg import agg_to_gtk_drawable
label_desc: Use image node_id 2 for calling the FigureCanvasGTKAgg obj's underlying member method code with example usage: obj.configure_event(widget, event) and returns: True