Add theme example

Cette révision appartient à :
Sebastian Lohff 2019-08-15 15:13:18 +02:00
Parent 58d6170a5c
révision 3d1d2d5acd
1 fichiers modifiés avec 16 ajouts et 0 suppressions

16
examples/theme1.py Fichier normal
Voir le fichier

@ -0,0 +1,16 @@
#!/usr/bin/env python3
from clintermission import CliMenu, CliMenuTheme
def main():
q = ["Foo", "Bar", "Baz baz baz baz baz"]
m = CliMenu(q, "Time to choose:\n", style=CliMenuTheme.BOLD_HIGHLIGHT)
if m.success:
print("You selected", m.get_selection())
else:
print("You aborted the selection")
if __name__ == '__main__':
main()