Uma biblioteca leve para adicionar botões a CLI do python
Project description
CliButtons 🥕
O CliButtons é uma biblioteca leve e poderosa para criar interfaces interativas de botões diretamente no seu terminal, otimizada para dispositivos Android e Pydroid.
Por que usar CliButtons?
Desenvolvido pensando em desenvolvedores mobile que sofrem com o teclado virtual subindo toda hora! O CliButtons lida com os sinais do terminal para garantir uma experiência de jogo ou aplicação limpa e funcional.
Instalação
pip install clibuttons
Como usar
from clibuttons import CliButtons
# Inicializa o sistema
app = CliButtons()
# Cria um botão
app.makebutton("JOGAR", lambda: print("Botão clicado!"), "btn1")
app.setbuttonposition("btn1", 5, 5)
# Renderiza e escuta os cliques
app.render()
app.listen_clicks()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters