diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-07-17 07:40:54 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-07-17 07:40:54 +0000 |
commit | 8188ef390db734738d245336d1d619516ca746d4 (patch) | |
tree | 36dc902621c535d2567244ce020d614858c9ddee /ptpython/layout.py | |
parent | Adding upstream version 3.0.16. (diff) | |
download | ptpython-4fcb29629f2d74a4bf2931f0944c9d136ecd76cb.tar.xz ptpython-4fcb29629f2d74a4bf2931f0944c9d136ecd76cb.zip |
Adding upstream version 3.0.19.upstream/3.0.19
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ptpython/layout.py')
-rw-r--r-- | ptpython/layout.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ptpython/layout.py b/ptpython/layout.py index 6482cbd..dc6b19b 100644 --- a/ptpython/layout.py +++ b/ptpython/layout.py @@ -64,7 +64,7 @@ __all__ = ["PtPythonLayout", "CompletionVisualisation"] class CompletionVisualisation(Enum): - " Visualisation method for the completions. " + "Visualisation method for the completions." NONE = "none" POP_UP = "pop-up" MULTI_COLUMN = "multi-column" @@ -116,7 +116,7 @@ def python_sidebar(python_input: "PythonInput") -> Window: @if_mousedown def goto_next(mouse_event: MouseEvent) -> None: - " Select item and go to next value. " + "Select item and go to next value." python_input.selected_option_index = index option = python_input.selected_option option.activate_next() @@ -472,7 +472,7 @@ def show_sidebar_button_info(python_input: "PythonInput") -> Container: @if_mousedown def toggle_sidebar(mouse_event: MouseEvent) -> None: - " Click handler for the menu. " + "Click handler for the menu." python_input.show_sidebar = not python_input.show_sidebar version = sys.version_info @@ -544,7 +544,7 @@ def meta_enter_message(python_input: "PythonInput") -> Container: @Condition def extra_condition() -> bool: - " Only show when... " + "Only show when..." b = python_input.default_buffer return ( @@ -646,7 +646,7 @@ class PtPythonLayout: sidebar = python_sidebar(python_input) self.exit_confirmation = create_exit_confirmation(python_input) - root_container = HSplit( + self.root_container = HSplit( [ VSplit( [ @@ -759,5 +759,5 @@ class PtPythonLayout: ] ) - self.layout = Layout(root_container) + self.layout = Layout(self.root_container) self.sidebar = sidebar |