瀏覽代碼

Fixes issues of commit 95127e72

Christoph Trappe 3 年之前
父節點
當前提交
8efbc46379
共有 5 個文件被更改,包括 5 次插入5 次删除
  1. 1 1
      nicegui/elements/button.py
  2. 1 1
      nicegui/elements/element.py
  3. 1 1
      nicegui/elements/image.py
  4. 1 1
      nicegui/elements/label.py
  5. 1 1
      nicegui/timer.py

+ 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