if __name__ == "__main__":
from PySide import QtCore, QtGui
import sys
from ui import Ui_Form
app = QtGui.QApplication(sys.argv)
Form = QtGui.QWidget()
ui = Ui_Form()
ui.setupUi(Form)
Form.show()
def remove_bad(self):
text = self.lineEdit.text()
text = s=s.replace('пд','пипец')
s=s.replace('зл','достал')
s=s.replace('бь','блин')
self.lineEdit_2.setText(text)
self.pushButton.clicked.connect(self.remove_bad)
sys.exit(app.exec_())