S
S
sublime_text32020-11-16 19:59:31
PyQt
sublime_text3, 2020-11-16 19:59:31

How to remove event on button click. PYQT5?

let's say I have a function that is bound when the button is pressed:
self.ui.pushButton.clicked.connect(self.func)
how to remove this event so that nothing happens when the button is pressed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bbkmzzzz, 2020-11-16
@sublime_text3

self.ui.pushButton.clicked.disconnect()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question