Show More
@@ -127,8 +127,6 b' class Widget(LoggingConfigurable):' | |||||
127 | def __del__(self): |
|
127 | def __del__(self): | |
128 | """Object disposal""" |
|
128 | """Object disposal""" | |
129 | self.close() |
|
129 | self.close() | |
130 | del Widget.widgets[self.model_id] |
|
|||
131 | self._comm = None |
|
|||
132 |
|
130 | |||
133 | #------------------------------------------------------------------------- |
|
131 | #------------------------------------------------------------------------- | |
134 | # Properties |
|
132 | # Properties | |
@@ -166,9 +164,10 b' class Widget(LoggingConfigurable):' | |||||
166 | Closes the underlying comm. |
|
164 | Closes the underlying comm. | |
167 | When the comm is closed, all of the widget views are automatically |
|
165 | When the comm is closed, all of the widget views are automatically | |
168 | removed from the front-end.""" |
|
166 | removed from the front-end.""" | |
|
167 | del Widget.widgets[self.model_id] | |||
169 | if self._comm is not None: |
|
168 | if self._comm is not None: | |
170 | self._comm.close() |
|
169 | self._comm.close() | |
171 |
|
170 | |||
172 | def send_state(self, key=None): |
|
171 | def send_state(self, key=None): | |
173 | """Sends the widget state, or a piece of it, to the front-end. |
|
172 | """Sends the widget state, or a piece of it, to the front-end. | |
174 |
|
173 |
General Comments 0
You need to be logged in to leave comments.
Login now