Module app.widgets.prompt
Classes
class PromptWidget (prompt_text: str, description: str = None, action_text: str = 'Continue', action_color: str = 'primary', action_callback:
= None, prompt_type: PromptWidgetTypes = PromptWidgetTypes.TEXT, choices: list = None, optional: bool = False, default_value: str | bool = None, validator: = None) -
Widget that can be inserted into the DOM
Parameters
tooltip
:str
- tooltip caption
layout
:InstanceDict(Layout)
widget layout
Initializes the custom widget.
Ancestors
- japper.widget_wrapper.override_widget.
.CustomWidget - ipyvuetify.generated.Container.Container
- ipyvuetify.generated.VuetifyWidget.VuetifyWidget
- ipyvue.VueWidget.VueWidget
- ipywidgets.widgets.domwidget.DOMWidget
- ipywidgets.widgets.widget.Widget
- ipywidgets.widgets.widget.LoggingHasTraits
- traitlets.traitlets.HasTraits
- traitlets.traitlets.HasDescriptors
- ipyvue.VueWidget.Events
- japper.japper_events.JapperEvents
Static methods
def from_dict(data)
Instance variables
var value : Self | G
-
A trait which allows any value.
Methods
def on_action_click(self, widget, event, data)
def on_prompt_change(self, widget, event, data)
def on_textfield_keyup(self, widget, event, data)
def set_action_color(self, action_color)
def set_action_text(self, action_text)
def set_error_msg(self, error_msg)
def set_info_msg(self, info_msg)
def validate(self, value)
class PromptWidgetTypes (*args, **kwds)
-
Create a collection of name/value pairs.
Example enumeration:
>>> class Color(Enum): ... RED = 1 ... BLUE = 2 ... GREEN = 3
Access them by:
- attribute access:
Color.RED
- value lookup:
Color(1)
- name lookup:
Color['RED']
Enumerations can be iterated over, and know how many members they have:
>>> len(Color) 3
>>> list(Color) [<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]
Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.
Ancestors
- enum.Enum
Class variables
var CONFIRM
var SELECT
var TEXT