A simple terminal based menu for python applications.
Importing the package:
import menumaker
Defining the functions:
def sum():
a = int(input('a: '))
b = int(input('b: '))
print(a+b)
return a+b
def multiply():
a = int(input('a: '))
b = int(input('b: '))
print(a*b)
return a*b
Initializing the Menu class:
m = menumaker.Menu("CALCULATOR",True,False,True ,[["Sum",sum],["Multiply",multiply]])
Running:
m.menu()