def reshape_cb(w, h): gl_draw.reshape(w, h)
def componentResized(self, e): size = self.getSize() gl_draw.reshape(size.width, size.height) self._resized = 1