Przeglądaj źródła

Fixes issues of commit 95127e72

Christoph Trappe 3 lat temu
rodzic
commit
8efbc46379

+ 1 - 1
nicegui/elements/button.py

@@ -6,7 +6,7 @@ from ..events import ClickEventArguments, handle_event
 from .element import Element
 
 class Button(Element):
-    text = BindableProperty
+    text = BindableProperty()
 
     def __init__(self,
                  text: str = '',

+ 1 - 1
nicegui/elements/element.py

@@ -3,7 +3,7 @@ from ..binding import bind_from, bind_to, BindableProperty
 from ..globals import view_stack, page_stack
 
 class Element:
-    visible = BindableProperty
+    visible = BindableProperty()
 
     def __init__(self,
                  view: jp.HTMLBaseComponent,

+ 1 - 1
nicegui/elements/image.py

@@ -4,7 +4,7 @@ from ..binding import bind_from, bind_to, BindableProperty
 from .group import Group
 
 class Image(Group):
-    source = BindableProperty
+    source = BindableProperty()
 
     def __init__(self,
                  source: str = '',

+ 1 - 1
nicegui/elements/label.py

@@ -4,7 +4,7 @@ from ..binding import bind_from, bind_to, BindableProperty
 from .element import Element
 
 class Label(Element):
-    text = BindableProperty
+    text = BindableProperty()
 
     def __init__(self,
                  text: str = '',

+ 1 - 1
nicegui/timer.py

@@ -9,7 +9,7 @@ from .globals import view_stack
 class Timer:
     tasks = []
 
-    active = BindableProperty
+    active = BindableProperty()
 
     def __init__(self, interval: float, callback: Union[Callable, Awaitable], *, active: bool = True, once: bool = False):
         """Timer