Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Main(QtWidgets.QWidget, Ui_Form):
- x = ''
- def __init__(self, parent=None):
- super(Main, self).__init__(parent)
- self.setupUi(self)
- self.pushButton.clicked.connect(self.subproce)
- self.checkBox.stateChanged.connect(
- lambda state=self.checkBox.isChecked(), no=1: self.selectBooks(state, no))
- def selectBooks(self, toggle, no):
- if toggle == QtCore.Qt.Checked:
- print(''.format(toggle, no))
- if no == 1:
- print(''.format(no))
- self.x = self.lineEdit_3.text()
- else:
- print(''.format(toggle, no))
- self.x = self.lineEdit_3.text()
- def subproce(self):
- x1 = self.x
- file = str(self.lineEdit.text()) + '/' + str(self.lineEdit_2)
- file_by = str(x1) + self.lineEdit_4.text()
- subprocess.call('pyuic5' + self.file + '-x' + self.file_by)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement