Show More
@@ -27,8 +27,6 b' from IPython.utils.traitlets import Unicode, Dict, List, Instance, Bool' | |||||
27 | from IPython.display import Javascript, display |
|
27 | from IPython.display import Javascript, display | |
28 | from IPython.utils.py3compat import string_types |
|
28 | from IPython.utils.py3compat import string_types | |
29 |
|
29 | |||
30 | from .widget_view import ViewWidget |
|
|||
31 |
|
||||
32 | #----------------------------------------------------------------------------- |
|
30 | #----------------------------------------------------------------------------- | |
33 | # Classes |
|
31 | # Classes | |
34 | #----------------------------------------------------------------------------- |
|
32 | #----------------------------------------------------------------------------- | |
@@ -331,7 +329,16 b' class BaseWidget(LoggingConfigurable):' | |||||
331 | self._comm.send(msg) |
|
329 | self._comm.send(msg) | |
332 | return True |
|
330 | return True | |
333 | else: |
|
331 | else: | |
334 |
return False |
|
332 | return False | |
|
333 | ||||
|
334 | ||||
|
335 | class ViewWidget(BaseWidget): | |||
|
336 | target_name = Unicode('ViewModel') | |||
|
337 | ||||
|
338 | def __init__(self, widget, view): | |||
|
339 | self.default_view_name = view | |||
|
340 | self.widget = widget | |||
|
341 | ||||
335 |
|
342 | |||
336 | class Widget(BaseWidget): |
|
343 | class Widget(BaseWidget): | |
337 | visible = Bool(True, help="Whether or not the widget is visible.") |
|
344 | visible = Bool(True, help="Whether or not the widget is visible.") |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now