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
|
||||||
PyGWin
|
A library for creating Python applications.
|
||||||
</h1>
|
|
||||||
|
|
||||||
<p align="center">
|
[Documentation](https://github.com/themixray/pygwin/wiki)
|
||||||
A library for creating Python applications.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p align="center">
|
|
||||||
<a href="https://github.com/themixray/pygwin/wiki">
|
|
||||||
Documentation
|
|
||||||
</a>
|
|
||||||
</p>
|
|
|
@ -60,3 +60,4 @@ class console:
|
||||||
self.focus()
|
self.focus()
|
||||||
pag.screenshot(path, region=rect)
|
pag.screenshot(path, region=rect)
|
||||||
return path
|
return path
|
||||||
|
console = console()
|
||||||
|
|
|
@ -28,7 +28,10 @@ class gamepad:
|
||||||
self._pygame = pygame
|
self._pygame = pygame
|
||||||
self._start()
|
self._start()
|
||||||
def _tick(self):
|
def _tick(self):
|
||||||
events = _inputs.get_gamepad()
|
try:
|
||||||
|
events = _inputs.get_gamepad()
|
||||||
|
except:
|
||||||
|
return
|
||||||
if not self._pygame.display.get_active():
|
if not self._pygame.display.get_active():
|
||||||
return
|
return
|
||||||
self.founded = True
|
self.founded = True
|
||||||
|
|
|
@ -624,6 +624,15 @@ class checkBox(widget):
|
||||||
def draw(self, win, pos):
|
def draw(self, win, pos):
|
||||||
self._generate(pos)
|
self._generate(pos)
|
||||||
win.blit(self.surface,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:
|
class base:
|
||||||
def __init__(self, win, bg=(128,128,128)):
|
def __init__(self, win, bg=(128,128,128)):
|
||||||
self._widgets = {}
|
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()
|
self.focus()
|
||||||
pag.screenshot(path, region=rect)
|
pag.screenshot(path, region=rect)
|
||||||
return path
|
return path
|
||||||
|
console = console()
|
||||||
|
|
|
@ -28,7 +28,10 @@ class gamepad:
|
||||||
self._pygame = pygame
|
self._pygame = pygame
|
||||||
self._start()
|
self._start()
|
||||||
def _tick(self):
|
def _tick(self):
|
||||||
events = _inputs.get_gamepad()
|
try:
|
||||||
|
events = _inputs.get_gamepad()
|
||||||
|
except:
|
||||||
|
return
|
||||||
if not self._pygame.display.get_active():
|
if not self._pygame.display.get_active():
|
||||||
return
|
return
|
||||||
self.founded = True
|
self.founded = True
|
||||||
|
|
|
@ -624,6 +624,15 @@ class checkBox(widget):
|
||||||
def draw(self, win, pos):
|
def draw(self, win, pos):
|
||||||
self._generate(pos)
|
self._generate(pos)
|
||||||
win.blit(self.surface,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:
|
class base:
|
||||||
def __init__(self, win, bg=(128,128,128)):
|
def __init__(self, win, bg=(128,128,128)):
|
||||||
self._widgets = {}
|
self._widgets = {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue