update example and docs link
This commit is contained in:
parent
ff66f66fbe
commit
d7cd2bb9e2
6 changed files with 73 additions and 66 deletions
12
README.md
12
README.md
|
@ -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()
|
||||
```
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue