I
I
Ilya1992018-06-19 17:25:38
Python
Ilya199, 2018-06-19 17:25:38

How to know which button I clicked on pyqt5?


There are 2
buttons , I click on one of them and I need to check which one it is, the first one or the second one Hello, developer') elif instanse.text == 'button_2': print('Hello') Need something like this, but in pyqt5

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
TriKrista, 2018-06-19
@TriKrista

use signals and slots

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question