Python listwidget click item button

Never mind, I found a way, which is really simple in fact. Being new to python, I didn’t know how to pass arguments to methods plugged to buttons. Here is how to do that for anyone who could have same issues

self.ui.btn_delete.clicked.connect(lambda: self.delete(fb))

    def delete(self, fb):
        print('delete ')

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top