You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
432 B
18 lines
432 B
#!/usr/bin/env python3
|
|
from clintermission import CliMenu, CliMenuCursor, CliMenuTheme
|
|
|
|
|
|
def main():
|
|
q = ["Foo", "Bar", "Baz baz baz baz baz"]
|
|
m = CliMenu(q, "Time to choose:\n",
|
|
indent=2, dedent_selection=True,
|
|
cursor=CliMenuCursor.TRIANGLE,
|
|
style=CliMenuTheme.BLUE)
|
|
|
|
m.get_selection()
|
|
print("You selected", m.get_selection())
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|