Beispiel #1
0
    def test_minimize_window(self):
        window = video.create_window("test_minimize_window", 200, 200,
                                     200, 200, 0)
        video.show_window(window)
        doprint("""Please check, that a window with the title
'test_minimize_window' is shown""")
        video.minimize_window(window)
        doprint("Please check, if the window was minimized properly")
        video.destroy_window(window)
Beispiel #2
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)
Beispiel #3
0
    def test_raise_window(self):
        window = video.create_window("test_raise_window", 200, 200, 200, 200,
                                     0)
        video.show_window(window)
        doprint("""Please check, that a window with the title
'test_raise_window' is shown""")
        doprint("Move another window on top of the window, so it is hidden")
        video.raise_window(window)
        doprint("The window should be raised to the foreground now")
        video.destroy_window(window)
Beispiel #4
0
    def test_hide_window(self):
        window = video.create_window("test_hide_window", 200, 200, 200, 200, 0)
        video.show_window(window)
        doprint("""Please check, if a window with the title
'test_hide_window' is shown""")
        video.hide_window(window)
        doprint("Please check, that the window is not shown anymore")
        video.show_window(window)
        doprint("Please check, if the window is shown again")
        video.destroy_window(window)
Beispiel #5
0
    def test_show_window(self):
        window = video.create_window("test_show_window", 200, 200, 200, 200, 0)
        video.show_window(window)
        doprint("""Please check, if a window with the title
'test_show_window' is shown""")
        video.destroy_window(window)
Beispiel #6
0
 def show(self):
     """Show the window on the display."""
     sdlvideo.show_window(self.window)