Add files via upload
This commit is contained in:
parent
8d6ec739bd
commit
a3fd5c01d4
8 changed files with 31 additions and 14 deletions
|
@ -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):
|
||||
events = _inputs.get_gamepad()
|
||||
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