Add files via upload
This commit is contained in:
parent
8d6ec739bd
commit
a3fd5c01d4
8 changed files with 31 additions and 14 deletions
15
README.md
15
README.md
|
@ -1,13 +1,4 @@
|
|||
<h1 align="center">
|
||||
PyGWin
|
||||
</h1>
|
||||
# PyGWin
|
||||
A library for creating Python applications.
|
||||
|
||||
<p align="center">
|
||||
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)
|
|
@ -60,3 +60,4 @@ class console:
|
|||
self.focus()
|
||||
pag.screenshot(path, region=rect)
|
||||
return path
|
||||
console = console()
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 = {}
|
||||
|
|
BIN
dist/pygwin-0.0.1-py3.7.egg
vendored
BIN
dist/pygwin-0.0.1-py3.7.egg
vendored
Binary file not shown.
|
@ -60,3 +60,4 @@ class console:
|
|||
self.focus()
|
||||
pag.screenshot(path, region=rect)
|
||||
return path
|
||||
console = console()
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue