View Single Post
Old 11-25-2020, 01:25 PM   #2
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,203
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
try this instead

Code:
from functools import partial

self.unshelve_TSBL1_button = QPushButton(
            'Unshelve from TSBL 1', self)
        self.unshelve_TSBL1_button.clicked.connect(partial(self.doUnshelve,'status:TSBL1shelved'))
        self.l.addWidget(self.unshelve_TSBL1_button)
capink is offline   Reply With Quote