apex1
Regular Member
- May 29, 2015
- 217
- 182
I'm making a GUI using PyQt5...
Lets say I have 2 input boxes in my GUI.. this code will copy the text user inputs from box 1 to box 2..
That works perfectly.
But lets say instead of wanting that text copied into lineEdit_2 I want it copied as a regular string variable in Python.. can someone ELI5 how this is done?
.
Lets say I have 2 input boxes in my GUI.. this code will copy the text user inputs from box 1 to box 2..
Code:
self.lineEdit.textChanged['QString'].connect(self.lineEdit_2.setText)
That works perfectly.
But lets say instead of wanting that text copied into lineEdit_2 I want it copied as a regular string variable in Python.. can someone ELI5 how this is done?
.