euporie.core.widgets.dialog
Dialog.
Functions
|
A decorator indicating abstract methods. |
|
Add a command to the centralized command system. |
|
Align formatted text at a given width. |
|
Focus the next visible Window. |
|
Focus the previous visible Window. |
|
Get the current active (running) Application. |
|
Enable when this buffer has the focus. |
|
Format formatted text using a named |
|
Update the key-binding registry. |
|
Take a single list of (style_str, text) tuples and yield one such list for each line. |
|
Convert the given value (which can be formatted text) into a list of text fragments. |
Classes
|
Metaclass for defining Abstract Base Classes (ABCs). |
|
A dialog which shows an "about" message. |
|
Draw a border around any container. |
|
Add padding around a container. |
|
A clickable button widget. |
|
Text on the clipboard. |
|
Turn any callable into a Filter. |
|
Wrapper around any other container that can change the visibility. |
|
A dialog which allows the user to confirm an action. |
|
A modal dialog which is displayed above the application. |
|
A draggable dialog titlebar. |
|
Specified dimension (width/height) of a user control or window. |
|
Container class that dynamically returns any Container. |
|
KeyBindings class that can dynamically returns any KeyBindings. |
|
A dialog to show unhandled exceptions. |
|
A file browser. |
|
A base dialog to prompt the user for a file path. |
|
Float for use in a |
|
Apply a style to child containers when focused or hovered. |
|
Alignment of formatted text. |
|
Control that displays formatted text. |
|
Several layouts, one stacked above/under the other. ::. |
A container for a set of key bindings. |
|
|
Widget that displays the given text. |
|
A widget which applies a label to another widget. |
|
|
|
|
|
A dialog which shows the user a message. |
|
Dialog to warn the user that no installed kernels were found. |
|
A dialog which prompts the user for a filepath to open. |
|
PurePath subclass that can make system calls. |
|
Complete for Path variables. |
|
|
|
A dialog which prompts the user for a filepath to save the current tab. |
|
A select widget, which allows one or more items to be selected from a list. |
|
A dialog which allows the user to select a kernel. |
|
Draw a shadow underneath/behind this container. |
|
Display details of registered key-bindings in a dialog. |
|
Very simple cache that discards the oldest item when the cache size is exceeded. |
|
Base class for interface tabs. |
|
A text input widget. |
|
Content generated by a user control. |
Base class for all user interface controls. |
|
|
A dialog prompting the user to save unsaved changes. |
|
Several layouts, one stacked left/right of the other. ::. |
|
Container that holds a control. |
|
|
partial(func, *args, **keywords) - new function with partial application of the given arguments and keywords. |
- class euporie.core.widgets.dialog.AboutDialog(app: BaseApp)
Bases:
euporie.core.widgets.dialog.Dialog
A dialog which shows an “about” message.
- body_padding_bottom = 0
- body_padding_top = 1
- hide(event: KeyPressEvent | None = None) None
Hide the dialog.
- class euporie.core.widgets.dialog.ConfirmDialog(app: BaseApp)
Bases:
euporie.core.widgets.dialog.Dialog
A dialog which allows the user to confirm an action.
- body_padding_bottom = 0
- body_padding_top = 1
- hide(event: KeyPressEvent | None = None) None
Hide the dialog.
- class euporie.core.widgets.dialog.Dialog(app: BaseApp)
Bases:
prompt_toolkit.layout.containers.Float
A modal dialog which is displayed above the application.
Returns focus to the previously selected control when closed.
- body_padding_bottom = 0
- body_padding_top = 1
- hide(event: KeyPressEvent | None = None) None
Hide the dialog.
- class euporie.core.widgets.dialog.DialogTitleControl(title: AnyFormattedText, dialog: Dialog, window: Window)
Bases:
prompt_toolkit.layout.controls.UIControl
A draggable dialog titlebar.
- create_content(width: int, height: int | None) prompt_toolkit.layout.controls.UIContent
Create the title text content.
- get_invalidate_events() Iterable[Event[object]]
Return a list of Event objects. This can be a generator. (The application collects all these events, in order to bind redraw handlers to these events.)
- get_key_bindings() KeyBindingsBase | None
The key bindings that are specific for this user control.
Return a
KeyBindings
object if some key bindings are specified, or None otherwise.
- mouse_handler(mouse_event: MouseEvent) NotImplementedOrNone
Move the dialog when the titlebar is dragged.
- move_cursor_down() None
Request to move the cursor down. This happens when scrolling down and the cursor is completely at the top.
- class euporie.core.widgets.dialog.ErrorDialog(app: BaseApp)
Bases:
euporie.core.widgets.dialog.Dialog
A dialog to show unhandled exceptions.
- body: AnyContainer
- body_padding_bottom = 0
- body_padding_top = 1
- hide(event: KeyPressEvent | None = None) None
Hide the dialog.
- class euporie.core.widgets.dialog.FileDialog(app: BaseApp)
Bases:
euporie.core.widgets.dialog.Dialog
A base dialog to prompt the user for a file path.
- body: AnyContainer
- body_padding_bottom = 0
- body_padding_top = 1
- hide(event: KeyPressEvent | None = None) None
Hide the dialog.
- class euporie.core.widgets.dialog.MsgBoxDialog(app: BaseApp)
Bases:
euporie.core.widgets.dialog.Dialog
A dialog which shows the user a message.
- body: AnyContainer
- body_padding_bottom = 0
- body_padding_top = 1
- hide(event: KeyPressEvent | None = None) None
Hide the dialog.
- class euporie.core.widgets.dialog.NoKernelsDialog(app: BaseApp)
Bases:
euporie.core.widgets.dialog.Dialog
Dialog to warn the user that no installed kernels were found.
- body: AnyContainer
- body_padding_bottom = 0
- body_padding_top = 1
- hide(event: KeyPressEvent | None = None) None
Hide the dialog.
- class euporie.core.widgets.dialog.OpenFileDialog(app: BaseApp)
Bases:
euporie.core.widgets.dialog.FileDialog
A dialog which prompts the user for a filepath to open.
- body: AnyContainer
- body_padding_bottom = 0
- body_padding_top = 1
- hide(event: KeyPressEvent | None = None) None
Hide the dialog.
- class euporie.core.widgets.dialog.SaveAsDialog(app: BaseApp)
Bases:
euporie.core.widgets.dialog.FileDialog
A dialog which prompts the user for a filepath to save the current tab.
- body: AnyContainer
- body_padding_bottom = 0
- body_padding_top = 1
- hide(event: KeyPressEvent | None = None) None
Hide the dialog.
- class euporie.core.widgets.dialog.SelectKernelDialog(app: BaseApp)
Bases:
euporie.core.widgets.dialog.Dialog
A dialog which allows the user to select a kernel.
- body: AnyContainer
- body_padding_bottom = 0
- body_padding_top = 1
- hide(event: KeyPressEvent | None = None) None
Hide the dialog.
- class euporie.core.widgets.dialog.ShortcutsDialog(app: BaseApp)
Bases:
euporie.core.widgets.dialog.Dialog
Display details of registered key-bindings in a dialog.
- body: AnyContainer
- body_padding_bottom = 0
- body_padding_top = 1
- format_key_info() StyleAndTextTuples
Generate a table with the current key bindings.
- hide(event: KeyPressEvent | None = None) None
Hide the dialog.
- class euporie.core.widgets.dialog.UnsavedDialog(app: BaseApp)
Bases:
euporie.core.widgets.dialog.Dialog
A dialog prompting the user to save unsaved changes.
- body: AnyContainer
- body_padding_bottom = 0
- body_padding_top = 1
- hide(event: KeyPressEvent | None = None) None
Hide the dialog.