Ask coding questions

← Back to all posts
How do I create buttons in Python?
Aqual (3)

Is there a way for me to create multiple buttons in Python on this website?

Comments
hotnewtop
sugarfi (630)

You could have some sort of a selection menu with the arrow keys, but buttons with the mouse will not work.

Aqual (3)

@sugarfi ok, how do I do that?

CodeLongAndPros (1624)

@sugarfi Look at asciimatics; it's higher level than Python Curses (I know) and supports TUI.

sugarfi (630)

@CodeLongAndPros yeah, but curses is easier for a beginner.

CodeLongAndPros (1624)

@sugarfi

curses is easier for a beginner

asciimatics is literally Tk for terminal. They have documentation, and support mouse clicks.

Aqual (3)

Can you walk me through this?

RohilPatel (1581)

Don't you need a server on frontend to make this work?

emilyUsesPascal (65)

You cannot create buttons in the terminal, however you can have a webserver and have buttons there