示例#1
0
    def test_maximize_window(self):
        window = video.create_window("test_maximize_window", 200, 200,
                                     200, 200, video.SDL_WINDOW_RESIZABLE)
        video.show_window(window)
        doprint("""Please check, that a window with the title
'test_maximize_window' is shown""")
        video.maximize_window(window)
        doprint("Please check, if the window was maximized properly")
        video.destroy_window(window)
示例#2
0
文件: window.py 项目: gdos/pgreloaded
 def maximize(self):
     """Maximizes the window to the display's dimensions."""
     sdlvideo.maximize_window(self.window)