qiskit_trebugger.views.widget.button_with_value
Implement a button with value
1"""Implement a button with value 2""" 3import ipywidgets as widgets 4 5 6class ButtonWithValue(widgets.Button): 7 """Implements a button with value by inheriting from 8 Button class. 9 """ 10 11 def __init__(self, *args, **kwargs): 12 self.value = kwargs["value"] 13 kwargs.pop("value", None) 14 super().__init__(*args, **kwargs)
class
ButtonWithValue(ipywidgets.widgets.widget_button.Button):
7class ButtonWithValue(widgets.Button): 8 """Implements a button with value by inheriting from 9 Button class. 10 """ 11 12 def __init__(self, *args, **kwargs): 13 self.value = kwargs["value"] 14 kwargs.pop("value", None) 15 super().__init__(*args, **kwargs)
Implements a button with value by inheriting from Button class.
ButtonWithValue(*args, **kwargs)
12 def __init__(self, *args, **kwargs): 13 self.value = kwargs["value"] 14 kwargs.pop("value", None) 15 super().__init__(*args, **kwargs)
Public constructor
Inherited Members
- ipywidgets.widgets.widget_button.Button
- description
- tooltip
- disabled
- icon
- style
- on_click
- click
- ipywidgets.widgets.domwidget.DOMWidget
- layout
- add_class
- remove_class
- ipywidgets.widgets.widget.Widget
- widgets
- widget_types
- close_all
- on_widget_constructed
- handle_comm_opened
- get_manager_state
- get_view_spec
- comm
- keys
- open
- model_id
- close
- send_state
- get_state
- set_state
- send
- on_msg
- on_displayed
- add_traits
- notify_change
- hold_sync
- ipywidgets.widgets.widget.LoggingHasTraits
- log
- traitlets.traitlets.HasTraits
- setup_instance
- cross_validation_lock
- hold_trait_notifications
- on_trait_change
- observe
- unobserve
- unobserve_all
- set_trait
- class_trait_names
- class_traits
- class_own_traits
- has_trait
- trait_has_value
- trait_values
- trait_defaults
- trait_names
- traits
- trait_metadata
- class_own_trait_events
- trait_events