def METHOD_NAME(self, view, width, height):
    # redraw the mode indicator since the window has been resized
    bm = view.get_bindmap()
    mode, modetype = bm.current_mode()
    self.mode_change_cb(bm, mode, modetype)