def calc(self):
progressBar = self.progressBar
self.Calculate.setEnabled(False)
filter = self.SubSectorLevel1.currentText()
filter1 = self.SubSectorLevel2.currentText()
IND = self.lineEdit.text()
OTD = self.lineEdit_2.text()
Version= self.lineEdit_10.text()
Year=self.lineEdit_4.text()
if filter=='Residue Burning':
if filter1 =='None':
ARB(IND,OTD,Version,Year,progressBar)
if filter=='Lightning & Heating':
if filter1 =='Lighting':
RKL(IND,OTD,Version,Year)
elif filter1=='Space Heating':
RSH(IND,OTD,Version,Year)
elif filter1=='Water Heating':
RWH(IND,OTD,Version,Year,progressBar)
if filter=='Brick Production':
if filter1 =='None':
BP(IND,OTD,Version,Year,progressBar)
I want to use Qprocess in user defined function like RSH and BP