Skip to content

Creating your first window!

ImNotRinka edited this page Jul 29, 2022 · 2 revisions

Create your first window!

Explaining Gamwo class

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: image

In the next episode you will learn the draw decorator.

Clone this wiki locally