-
Notifications
You must be signed in to change notification settings - Fork 2
Window
themixray edited this page Dec 12, 2021
·
12 revisions
This class inherits the surface class.
Close window.
win.close()
Returns None
Update window.
win.update(fps=-1)
- fps Frames per second
Returns win
Set window title.
win.title = title
- title Window title
Returns None
Get window title.
win.title
Returns str
Set window size.
win.size = (width, height)
- width Window width
- height Window height
Returns None
Get window size.
win.size
Returns tuple
Set window icon.
win.icon(path)
- path Path to window icon.
Returns None
Toogle window fullscreen.
win.fullscreen()
Returns None
Get window fps.
win.fps
win.rawFps
Returns int/float
Get window HWND.
win.hwnd
Returns int
Move window
win.move(x, y)
- x Window x
- y Window y
Returns None
Get window position
win.position
Returns tuple
Check is window visible
win.visible
Returns bool
Hide window
win.hide()
Returns None
Show window
win.show()
Returns None
Focus window
win.focus()
Returns None
Unfocus window
win.unfocus()
Returns None
Screenshot window
win.screenshot(path)
- path Destination path
Returns str
Get window tray.
This variable will not exist if the icon is not specified when creating win.
win.tray
Returns tray
Prohibit dragging the window.
win.denyDrag()
Returns None
Allow dragging the window.
win.allowDrag()
Returns None