pygame2.sdl.wm – SDL window manager wrapper module

Pygame SDL window manager wrapper module.

Module Functions

pygame2.sdl.wm.get_caption() → str
Gets the caption of the current SDL window.
pygame2.sdl.wm.get_info() → dict
Gets operating system and window manager specific information about the current SDL window .
pygame2.sdl.wm.grab_input(mode) → int
Advices the window manager to let the window grab the mouse and keyboard input focus (or release it). The function returns the previously set mode.
pygame2.sdl.wm.iconify_window() → bool
Advices the window manager to iconify the window and returns, whether the operation was successful or not.
pygame2.sdl.wm.set_caption(str) → None
Sets the caption of the current SDL window.
pygame2.sdl.wm.set_icon(surface[, mask]) → None

Sets the window manager icon to be used by the window.

Todo

Not fully implemented.

pygame2.sdl.wm.toggle_fullscren(bool) → bool
Tries to toggle the fullscreen mode for the SDL window and returns, whether the operation was successful or not.

Table Of Contents

Previous topic

pygame2.sdl.video – SDL video display wrapper module.

Next topic

pygame2.sdlext – basic extensions for SDL modules

This Page