code: def _resize(self, width, height):
          '''
          .. versionadded:: 0.20
  
          Clear canvas, draw frame off screen, and mark dirty.
  
          ..notes::
              This method is debounced to improve responsiveness.
          '''
          self._dirty_size = width, height
          self.reset_canvas(width, height)
          self.draw()
          self._dirty_draw = Truf _resize(self, width, height):
          '''
          .. versionadded:: 0.20
  
          Clear canvas, draw frame off screen, and mark dirty.
  
          ..notes::
              This method is debounced to improve responsiveness.
          '''
          self._dirty_size = width, height
          self.reset_canvas(width, height)
          self.draw()
          self._dirty_draw = True
docs: .. versionadded:: 0.20
  
          Clear canvas, draw frame off screen, and mark dirty.
  
          ..notes::
              This method is debounced to improve responsiveness.