-
Notifications
You must be signed in to change notification settings - Fork 0
Creating your first window!
ImNotRinka edited this page Jul 29, 2022
·
2 revisions
Gamwo class is the main class, with this class you can generate a window with input, manage time and handlers.
How to use this class?
from gamwo import *
window = Gamwo("My first window", 800, 600)
To gamwo class u can give 3 optional parametres, title (string), width (int) and height (int)
But for show the window we need a bit thing more:
window.run()
Obviusly window
it's the name of your variable.
Resulting code:
from gamwo import * # Import gamwo framework
window = Gamwo("My first window :D", 800, 600) # Create a window
window.run() # Show the window
Result:
In the next episode you will learn the draw decorator.
Created by RinkaDev#9894