Skip to content

Commit 30250ab

Browse files
committed
__init__.py updated
1 parent 77a5b0f commit 30250ab

File tree

1 file changed

+1
-32
lines changed

1 file changed

+1
-32
lines changed

consolemenu/__init__.py

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1 @@
1-
from console_menu import ConsoleMenu
2-
3-
if __name__ == "__main__":
4-
def func1():
5-
print("Im func1")
6-
7-
def func2():
8-
print("Im func2")
9-
10-
def func3():
11-
print("Im func3")
12-
raise Exception
13-
14-
nested_menu = ConsoleMenu(
15-
"Sample nested menu",
16-
{
17-
"call func1": func1,
18-
"call func2": func2,
19-
"call func3": func3,
20-
}
21-
)
22-
23-
menu = ConsoleMenu(
24-
"Sample menu",
25-
{
26-
"call func1": func1,
27-
"call func2": func2,
28-
"call func3": func3,
29-
"goto nested menu": nested_menu,
30-
}
31-
)
32-
menu.execute()
1+
from consolemenu.console_menu import ConsoleMenu

0 commit comments

Comments
 (0)