4
4
Bool , Int , Unicode , Enum , Tuple , Instance
5
5
)
6
6
import uuid
7
- from ._version import __version__
7
+ from ._version import module_version
8
8
9
9
10
10
def id_gen ():
@@ -18,8 +18,8 @@ class Node(Widget):
18
18
_model_name = Unicode ('NodeModel' ).tag (sync = True )
19
19
_view_module = Unicode ('ipytree' ).tag (sync = True )
20
20
_model_module = Unicode ('ipytree' ).tag (sync = True )
21
- _view_module_version = Unicode (__version__ ).tag (sync = True )
22
- _model_module_version = Unicode (__version__ ).tag (sync = True )
21
+ _view_module_version = Unicode (module_version ).tag (sync = True )
22
+ _model_module_version = Unicode (module_version ).tag (sync = True )
23
23
24
24
_style_values = [
25
25
"warning" , "danger" , "success" , "info" , "default"
@@ -81,8 +81,8 @@ class Tree(DOMWidget):
81
81
_model_name = Unicode ('TreeModel' ).tag (sync = True )
82
82
_view_module = Unicode ('ipytree' ).tag (sync = True )
83
83
_model_module = Unicode ('ipytree' ).tag (sync = True )
84
- _view_module_version = Unicode (__version__ ).tag (sync = True )
85
- _model_module_version = Unicode (__version__ ).tag (sync = True )
84
+ _view_module_version = Unicode (module_version ).tag (sync = True )
85
+ _model_module_version = Unicode (module_version ).tag (sync = True )
86
86
87
87
nodes = Tuple ().tag (trait = Instance (Node ), sync = True , ** widget_serialization )
88
88
multiple_selection = Bool (True , read_only = True ).tag (sync = True )
0 commit comments