Пример #1
0
 def test_resize(self):
     w = window.Window(200, 200, resizable=True)
     w.push_handlers(self)
     while not w.has_exit:
         w.dispatch_events()
         window_util.draw_client_border(w)
         w.flip()
     w.close()
Пример #2
0
 def test_resize(self):
     w = window.Window(200, 200, resizable=True)
     w.push_handlers(self)
     while not w.has_exit:
         w.dispatch_events()
         window_util.draw_client_border(w)
         w.flip()
     w.close()
Пример #3
0
 def test_resizable(self):
     print(__doc__)
     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()
Пример #4
0
 def test_set_size(self):
     print(__doc__)
     self.width, self.height = 200, 200
     self.w = w = window.Window(self.width, self.height)
     w.push_handlers(self)
     while not w.has_exit:
         w.dispatch_events()
         window_util.draw_client_border(w)
         w.flip()
     w.close()
Пример #5
0
 def test_resizable(self):
     print(__doc__)
     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()
Пример #6
0
 def test_set_size(self):
     print(__doc__)
     self.width, self.height = 200, 200
     self.w = w = window.Window(self.width, self.height)
     w.push_handlers(self)
     while not w.has_exit:
         w.dispatch_events()
         window_util.draw_client_border(w)
         w.flip()
     w.close()
Пример #7
0
 def test_resize(self):
     w = Window(200, 200, resizable=True)
     try:
         w.push_handlers(self)
         while not w.has_exit:
             window_util.draw_client_border(w)
             w.flip()
             w.dispatch_events()
     finally:
         w.close()
     self.user_verify('Pass test?', take_screenshot=False)
Пример #8
0
 def test_resizable(self):
     self.width, self.height = 200, 200
     self.w = w = window.Window(self.width, self.height, resizable=True)
     try:
         glClearColor(1, 1, 1, 1)
         while not w.has_exit:
             window_util.draw_client_border(w)
             w.flip()
             w.dispatch_events()
     finally:
         w.close()
     self.user_verify('Pass test?', take_screenshot=False)
Пример #9
0
 def test_set_size(self):
     self.width, self.height = 200, 200
     self.w = w = Window(self.width, self.height)
     try:
         w.push_handlers(self)
         while not w.has_exit:
             window_util.draw_client_border(w)
             w.flip()
             w.dispatch_events()
     finally:
         w.close()
     self.user_verify('Pass test?', take_screenshot=False)
Пример #10
0
 def on_expose(self):
     glClearColor(1, 0, 0, 1)
     glClear(GL_COLOR_BUFFER_BIT)
     window_util.draw_client_border(self.w)
     self.w.flip()
Пример #11
0
 def on_expose(self):
     glClearColor(1, 0, 0, 1)
     glClear(GL_COLOR_BUFFER_BIT)
     window_util.draw_client_border(self.w)
     self.w.flip()