S
S
smokedevil6662021-12-25 16:45:46
Python
smokedevil666, 2021-12-25 16:45:46

How to change button name with shell command?

Please tell me how to change the name of the button with the shell command, but what would the button have a different inscription instead of the command itself?
Now it's like this))
keyboard.row('python3 /home/toor/zabb.py')
And it works, only the name on the button would be different

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vindicar, 2021-12-26
@Vindicar

smokedevil666 , make a global view dictionary And look in it for the received message. If there is no such key, you swear at the user.
commands = { "Нажми": "python3 /foor/bar/baz" }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question