Hi.
I have written some Python code and is works OK. I now need to, say, interface it better with the user, myself
I got QT Designer and configured some dialogues including a textEdit widget called textEdit_log.
The code which I don’t understand much, looks like this:
The problem is that I am struggling to find out how can I append text to textEdit_log from outside PlotGUI code, I mean, from ‘regular’ Python code.
Having understood how to solve this problem I will probably solve the other similar difficulties.
I hope this post is according to the rules
Thank you
H. Martins
I have written some Python code and is works OK. I now need to, say, interface it better with the user, myself

I got QT Designer and configured some dialogues including a textEdit widget called textEdit_log.
The code which I don’t understand much, looks like this:
from PyQt5.QtWidgets import * from PyQt5 import uic def main(): app = QApplication([]) window = PlotGUI() app.exec_() if __name__ == '__main__': main() class PlotGUI(QMainWindow): def __init__(self): super(PlotGUI, self).__init__() uic.loadUi("PlotGUI.ui", self) self.show() self.textEdit_log.append("Hi!")As a result of last line above “Hi!” shows up in textEdit_log. Perfect
The problem is that I am struggling to find out how can I append text to textEdit_log from outside PlotGUI code, I mean, from ‘regular’ Python code.
Having understood how to solve this problem I will probably solve the other similar difficulties.
I hope this post is according to the rules

Thank you
H. Martins