Bases: widgets.DOMWidget
A template widget for Evince.
Source code in evince/morpheusview.py
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38 | @widgets.register
class MorpheusView(widgets.DOMWidget):
"""A template widget for Evince."""
# Name of the widget view class in front-end
_view_name = tl.Unicode('MorpheusView').tag(sync=True)
# Name of the widget model class in front-end
_model_name = tl.Unicode('MorpheusModel').tag(sync=True)
# Name of the front-end module containing widget view
_view_module = tl.Unicode('evince').tag(sync=True)
# Name of the front-end module containing widget model
_model_module = tl.Unicode('evince').tag(sync=True)
# Version of the front-end module containing widget view
_view_module_version = tl.Unicode(NPM_PACKAGE_RANGE).tag(sync=True)
# Version of the front-end module containing widget model
_model_module_version = tl.Unicode(NPM_PACKAGE_RANGE).tag(sync=True)
# Widget specific property.
# Widget properties are defined as traitlets. Any property tagged with `sync=True`
# is automatically synced to the frontend *any* time it changes in Python.
# It is synced back to Python from the frontend *any* time the model is touched.
value = tl.Unicode('Hello World!').tag(sync=True)
pos = tl.Bytes().tag(sync=True)
|