def get_state(self, key=None, drop_defaults=False):
# HACK: Lets this composite widget pretend to be a regular widget
# when included into a layout.
if key in ['value', '_options_labels']:
return super(CrossSelect, self).get_state(key)
return self._composite.get_state(key)
# Composite widget containing a Dropdown and a Button in an HBox.
# Some things are routed to/from the Dropdown, others to/from the
# composite HBox.
评论列表
文章目录