Reputation: 55
So I have this simple menu in python:
1 - x
2 - y
3 - z
what you gonna do?
I want to ask user to press a number to choose the option but I can't figure it out, instead of making user write the option and pressing enter, I want the user to press number and do the option! How can I achieve this?
Upvotes: 1
Views: 79
Reputation: 1147
A button is a "visual" component, and thus requires a library of some sort to develop with relative ease. As Neftas mentions, there are a number of these libraries out there for free, one being PyQt.
Checkout this thread for more:What Python GUI APIs Are Out There?
Upvotes: 1