How do I create buttons in Python?
Is there a way for me to create multiple buttons in Python on this website?
Aqual
Can you walk me through this?
Aqual
Ok.
RohilPatel
Don't you need a server on frontend to make this work?
emilyUsesPascal
You cannot create buttons in the terminal, however you can have a webserver and have buttons there
You could have some sort of a selection menu with the arrow keys, but buttons with the mouse will not work.
@sugarfi ok, how do I do that?
@Aqual you can use the curses library (https://docs.python.org/3/howto/curses.html)
and also this article seems like a pretty good tutorial on the subject
https://codeburst.io/building-beautiful-command-line-interfaces-with-python-26c7e1bb54df
@sugarfi Look at
asciimatics
; it's higher level than Python Curses (I know) and supports TUI.@CodeLongAndPros yeah, but curses is easier for a beginner.
@sugarfi
asciimatics
is literally Tk for terminal. They have documentation, and support mouse clicks.