How To Show All Entered Text In Line Edit To Text Edit Widget In Pyqt4
Below is my code. I want to show all entered text in line edit to textedit widget. Whenever i entered a text in line edit the same will show in textedit widget. But it's overwrite
Solution 1:
You have to use the append()
method to add the text to the end, on the other hand it is more readable to use clear()
to clean the QLineEdit
that setText("")
.
def message_Chat(self):
text = self.message_box.text()
self.tedit.append(text)
self.message_box.clear()
Post a Comment for "How To Show All Entered Text In Line Edit To Text Edit Widget In Pyqt4"