def test_resize(self): w = window.Window(200, 200, resizable=True) w.push_handlers(self) while not w.has_exit: window_util.draw_client_border(w) w.flip() w.dispatch_events() w.close()
def test_set_size(self): self.width, self.height = 200, 200 self.w = w = window.Window(self.width, self.height, resizable=True) w.push_handlers(self) while not w.has_exit: w.dispatch_events() window_util.draw_client_border(w) w.flip() w.close()
def test_resizable(self): self.width, self.height = 200, 200 self.w = w = window.Window(self.width, self.height, resizable=True) glClearColor(1, 1, 1, 1) while not w.has_exit: w.dispatch_events() window_util.draw_client_border(w) w.flip() w.close()
def test_min_max_size(self): self.width, self.height = 200, 200 self.w = w = window.Window(self.width, self.height, resizable=True) w.push_handlers(self) while not w.has_exit: window_util.draw_client_border(w) w.flip() w.dispatch_events() w.close()
def test_resizable(self): self.width, self.height = 200, 200 self.w = w = window.Window(self.width, self.height, resizable=True) glClearColor(1, 1, 1, 1) while not w.has_exit: window_util.draw_client_border(w) w.flip() w.dispatch_events() w.close()
def on_expose(self): glClearColor(1, 0, 0, 1) glClear(GL_COLOR_BUFFER_BIT) window_util.draw_client_border(self.w) self.w.flip()