Apr-23-2023, 06:06 PM
I found a solution:
Thank you
H. Martins
class PlotGUI(QMainWindow): def __init__(self): super(PlotGUI, self).__init__() uic.loadUi("PlotGUI.ui", self) self.show() global txt_log # <<<<<<<<<<<<<< these two lines txt_log = self.textEdit_log # <<<<<<<<<<<<<< these two linesThen a small aggregating (append + repaint) function
def txt2log(str): txt_log.append(str) txt_log.repaint()And finnaly,
txt2log("appending text")placed in any other function is doing the job.
Thank you
H. Martins