Add files via upload

This commit is contained in:
themixray 2021-11-07 21:46:33 +03:00 committed by GitHub
parent abef24e1aa
commit 815a7bea90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 1380 additions and 91 deletions

View file

@ -16,6 +16,7 @@ class widget:
for i in args.items():
if i[0] != 'self':
exec(f'self.{i[0]} = args["{i[0]}"]')
self._args = args
def __init__(self, surface):
self._args(locals())
def draw(self, win, pos):
@ -31,6 +32,7 @@ class widget:
for i in parameters.items():
if i[0] in list(self.__dict__.keys()):
exec(f'self.{i[0]} = parameters["{i[0]}"]')
self.__init__(**self._args)
class button(widget):
def __init__(self,text,
func=lambda:None,