So i have a problem writing what i have as list in a python code into my Qwidget , what i want is : as i have a list of tweets , when i click on the button i want my code to write what i have in a list in the Qwidget i don't know what to use for the writing part , i thought of using QPlainTextEdit which i think is not right , can you give me an idea of what to use and how ? here is my code
import sys
from PyQt5 import QtWidgets
from PyQt5.QtWidgets import *
import gettweet
app = QApplication.instance()
if not app:
app = QApplication(sys.argv)
widget = QWidget()
get = QPushButton(widget)
get.setText("Get tweet")
get.move(64,32)
widget.setGeometry(50,50,800,600)
widget.setWindowTitle("Sentiments tweets")
QtWidgets.QPlainTextEdit(widget).setGeometry(300,0 , 500,600)
def window() :
get.clicked.connect(button1_clicked)
widget.show()
app.exec_()
def button1_clicked() :
tweets = gettweet.get()
for i in tweets :
pass
if __name__ == '__main__':
window()