I'm have trouble figuring out how to begin a code that displays a main menu. I want this main menu to display 5 different options that when on of them is clicked, it open that page/option. I also have Kivy installed, and the overall goal is to make a mobile app. My python experience is low, so I haven't actually written out any code for this goal but I have a full layout of what I want the app to look like.
Updated:
This is what I have so far.
mainMenu = {}
mainMenu ['1'] = 'Option 1'
mainMenu ['2'] = 'Option 2'
mainMenu ['3'] = 'Option 3'
mainMenu ['4'] = 'Option 4'
mainMenu ['5'] = 'Option 5'
print(mainMenu)
while True:
selection = input()
if selection == '1':
print('Page 1')
elif selection == '2':
print('Page 2')
elif selection == '3':
print('Page 3')
elif selection == '4':
print('Page 4')
elif selection == '5':
print('Page 5')
break
Please refer to the example below and modify it as per your requirementst. I recommend reading the documentation abound Kivy Dropdown list.
Example
main.py
test.kv
Output