File: selection_menu.pyi

package info (click to toggle)
typeshed 0.0~git20221107.4f381af-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 18,036 kB
  • sloc: python: 3,216; sh: 62; makefile: 13
file content (31 lines) | stat: -rw-r--r-- 1,009 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from collections.abc import Iterable

from consolemenu import ConsoleMenu as ConsoleMenu
from consolemenu.items import SelectionItem as SelectionItem
from consolemenu.menu_formatter import MenuFormatBuilder
from consolemenu.screen import Screen

class SelectionMenu(ConsoleMenu):
    def __init__(
        self,
        strings: Iterable[str],
        title: str | None = ...,
        subtitle: str | None = ...,
        screen: Screen | None = ...,
        formatter: MenuFormatBuilder | None = ...,
        prologue_text: str | None = ...,
        epilogue_text: str | None = ...,
        show_exit_option: bool = ...,
        exit_option_text: str = ...,
        clear_screen: bool = ...,
    ) -> None: ...
    @classmethod
    def get_selection(
        cls,
        strings: Iterable[str],
        title: str = ...,
        subtitle: str | None = ...,
        show_exit_option: bool = ...,
        _menu: ConsoleMenu | None = ...,
    ) -> int: ...
    def append_string(self, string: str) -> None: ...