Add files via upload
This commit is contained in:
parent
abef24e1aa
commit
815a7bea90
26 changed files with 1380 additions and 91 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue