[Tutor] Thread output to GUI Text Field

Patrycja Niewosz PNiewosz at slb.com
Mon Jan 11 11:12:32 EST 2016


Hi All,

I use commands,

        server_address = ('134.32.45.9', 10000)
        print ('starting up on port '% server_address)
        sock.bind(server_address)

the message pop ups in the window command when I run full code, however I would like to print this message in the main GUI, where I have defined

tcpControlGrid.addWidget(QtGui.QLabel('TCP Server Messages'),3,0)
tcpControlGrid.addWidget(self.tcpControlMessages,4,0)

self.tcpControlMessages = QtGui.QPlainTextEdit()

How can I transfer messages from above code directly to the GUI interface, so that I can see on main window.


Many thanks for help.
Patrycja


More information about the Tutor mailing list