1import easygui
2
3choices = ['opt 1', 'opt2']
4answer = easygui.choicebox('text', 'title', choices=choices)
5if answer == 'opt 1':
6 easygui.msgbox('text', 'title', ok_button="ok button")
7elif answer == 'opt2':
8 choices = ['opt1', 'opt 2']
9 easygui.choicebox('text', 'title', choices=choices)