update example and docs link

This commit is contained in:
MeexReay 2025-09-20 18:13:16 +03:00
parent ff66f66fbe
commit d7cd2bb9e2
6 changed files with 73 additions and 66 deletions

View file

@ -2,25 +2,25 @@
A library for creating GUI-applications on pygame.
[Documentation](docs/DOCS.md)
[Documentation](https://github.com/MeexReay/pygwin2/blob/main/docs/DOCS.md)
## Usage
Here is a small example of usage (pygame style):
```py
import pygwin
import pygwin2 as pgw
win = pygwin.create('Title',(500,500))
win = pgw.create('Title',(500,500))
run = True
while run:
for event in pygwin.getEvents():
if event.type == pygwin.QUIT:
for event in pgw.getEvents():
if event.type == pgw.QUIT:
run = False
win.update()
pygwin.close()
pgw.close()
```