Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Form1(QtGui.QDialog):
- def __init__(self):
- self.btnRecentSetouts.clicked.connect(self.RecentSetouts)
- self.btnCassette.clicked.connect(self.Cassette)
- @pyqtThreadedSlot()
- def RecentSetouts(self, checked):
- print("recent")
- @pyqtThreadedSlot()
- def Cassette(self, checked):
- print("Cassette")
- def pyqtThreadedSlot(*args, **kwargs):
- def threaded_int(func):
- # @QtCore.pyqtSlot(*args, **kwargs)
- def wrap_func(self, *args1,**kwargs1):
- GenericThread(self, func, *args1, **kwargs1)
- return wrap_func
- return threaded_int
Advertisement
Add Comment
Please, Sign In to add comment