From what I can see, you just have a typo. You want to index choices
, not choice
:
if choice == choices[0]:
#index choices ^
easygui.msgbox("Ethernet")
elif choice == choices[1]:
#index choices ^
easygui.msgbox("Wifi")
else:
easygui.msgbox("chus somthin!")