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