This commit is contained in:
Julian Freeman
2023-12-19 14:19:44 -04:00
parent 00790e6df8
commit 2f7c3ee151
3 changed files with 13 additions and 16 deletions

15
test.py
View File

@@ -11,19 +11,8 @@ def new_folder(name):
def test_helper():
# c = CliHelper(right_padding=20, draw_menu_again=False)
# n = c.add_option(title="New")
# c.add_option(title="Open File", exec_func=open_file)
# c.add_option(title="Save")
# c.add_exit_option()
#
# c.add_return_option(n)
# c.add_option(n, "New File")
# c.add_option(n, "New Folder", new_folder, ("Temp",))
# c.add_exit_option(n)
#
# c.start_loop()
ch = CliHelper()
ch = CliHelper({"right_padding": 20, "serial_marker": "->"})
# ch = CliHelper()
n = ch.add_option("New")
n.add_return_option()
n.add_option("New File")