Show More
@@ -17,7 +17,7 b' click events on the button and trigger backend code when the clicks are fired.' | |||
|
17 | 17 | import base64 |
|
18 | 18 | |
|
19 | 19 | from .widget import DOMWidget |
|
20 | from IPython.utils.traitlets import Unicode, Bytes | |
|
20 | from IPython.utils.traitlets import Unicode, CUnicode, Bytes | |
|
21 | 21 | |
|
22 | 22 | #----------------------------------------------------------------------------- |
|
23 | 23 | # Classes |
@@ -27,8 +27,8 b' class ImageWidget(DOMWidget):' | |||
|
27 | 27 | |
|
28 | 28 | # Define the custom state properties to sync with the front-end |
|
29 | 29 | format = Unicode('png', sync=True) |
|
30 |
width = Unicode(sync=True) |
|
|
31 | height = Unicode(sync=True) | |
|
30 | width = CUnicode(sync=True) | |
|
31 | height = CUnicode(sync=True) | |
|
32 | 32 | _b64value = Unicode(sync=True) |
|
33 | 33 | |
|
34 | 34 | value = Bytes() |
General Comments 0
You need to be logged in to leave comments.
Login now