Add files via upload

This commit is contained in:
themixray 2021-12-04 20:41:57 +03:00 committed by GitHub
parent 8d6ec739bd
commit a3fd5c01d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 31 additions and 14 deletions

View file

@ -1,13 +1,4 @@
<h1 align="center">
PyGWin
</h1>
<p align="center">
# PyGWin
A library for creating Python applications.
</p>
<p align="center">
<a href="https://github.com/themixray/pygwin/wiki">
Documentation
</a>
</p>
[Documentation](https://github.com/themixray/pygwin/wiki)

View file

@ -60,3 +60,4 @@ class console:
self.focus()
pag.screenshot(path, region=rect)
return path
console = console()

View file

@ -28,7 +28,10 @@ class gamepad:
self._pygame = pygame
self._start()
def _tick(self):
try:
events = _inputs.get_gamepad()
except:
return
if not self._pygame.display.get_active():
return
self.founded = True

View file

@ -624,6 +624,15 @@ class checkBox(widget):
def draw(self, win, pos):
self._generate(pos)
win.blit(self.surface,pos)
# class colorPicker(widget):
# def __init__(self):
# self._generate()
# def _generate(self, position=None):
# self.surface = _s((255,self.width))
#
# def draw(self, win, pos):
# self._generate(pos)
# win.blit(self.surface,pos)
class base:
def __init__(self, win, bg=(128,128,128)):
self._widgets = {}

Binary file not shown.

View file

@ -60,3 +60,4 @@ class console:
self.focus()
pag.screenshot(path, region=rect)
return path
console = console()

View file

@ -28,7 +28,10 @@ class gamepad:
self._pygame = pygame
self._start()
def _tick(self):
try:
events = _inputs.get_gamepad()
except:
return
if not self._pygame.display.get_active():
return
self.founded = True

View file

@ -624,6 +624,15 @@ class checkBox(widget):
def draw(self, win, pos):
self._generate(pos)
win.blit(self.surface,pos)
# class colorPicker(widget):
# def __init__(self):
# self._generate()
# def _generate(self, position=None):
# self.surface = _s((255,self.width))
#
# def draw(self, win, pos):
# self._generate(pos)
# win.blit(self.surface,pos)
class base:
def __init__(self, win, bg=(128,128,128)):
self._widgets = {}