bugfix
This commit is contained in:
parent
f1e493ca8e
commit
01442309d9
@ -26,7 +26,7 @@ from appPublic.myTE import string_template_render
|
|||||||
from .utils import *
|
from .utils import *
|
||||||
from .baseWidget import Text, HBox, VBox
|
from .baseWidget import Text, HBox, VBox
|
||||||
from .scrollpanel import ScrollPanel
|
from .scrollpanel import ScrollPanel
|
||||||
from .paging import Paging, RelatedLoader
|
from .paging import RelatedLoader
|
||||||
from .ready import WidgetReady
|
from .ready import WidgetReady
|
||||||
from .toolbar import Toolbar
|
from .toolbar import Toolbar
|
||||||
from .bgcolorbehavior import BGColorBehavior
|
from .bgcolorbehavior import BGColorBehavior
|
||||||
|
12
kivyblocks/eventhandler.py
Normal file
12
kivyblocks/eventhandler.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
import inspect
|
||||||
|
import asyncio
|
||||||
|
from functools improt wraps
|
||||||
|
|
||||||
|
def eventhandler(func):
|
||||||
|
@wraps(func)
|
||||||
|
def wrapper_func(*args, **kw):
|
||||||
|
if inspect.inspect.iscoroutinefunction(func):
|
||||||
|
return asyncio.gather(func(*args, **kw))
|
||||||
|
return func(*args, **kw)
|
||||||
|
return wrapper_func
|
||||||
|
|
Loading…
Reference in New Issue
Block a user