Newbie Question. Integrate a script in a wxpython gui.

Hi ChuehBueb,

This may be useful:
http://wiki.wxpython.org/LongRunningTasks

Sunday, July 22, 2007, 6:41:40 PM, you wrote:

···

Hi guys. I'm new to wxpython and here are my beginner questions.

I designed with wxGlade a simple GUI like this:

http://fwaechter.ch/public/gui.py.txt

and i have some simple code like this:

import socket

network = 'irc.onlinegamesnet.net'
port = 6667
irc = socket.socket ( socket.AF_INET, socket.SOCK_STREAM )
irc.connect ( ( network, port ) )
print irc.recv ( 4096 )
irc.send ( 'NICK BlabBlot\r\n' )
irc.send ( 'USER BlabBlot BlabBlot BlabBlot :Python IRC\r\n' )
while True:
    data = irc.recv ( 4096 )
    if data.find ( 'PING' ) != -1:
        irc.send ( 'PONG ' + data.split() [ 1 ] + '\r\n' )
    elif data.find ( 'PRIVMSG' ) != -1:
        nick = data.split ( '!' ) [ 0 ].replace ( ':', '' )
        message = ':'.join ( data.split ( ':' ) [ 2: ] )
        print nick + ':', message
        irc.sendall ( 'JOIN #asdasdfdgfdhj\r\n' )
    print data

I now want to integrate the script in the gui. In Example display "print
data" in the chat textctrl. Can you help?

And another Question: Is there a possibility to add a background image to a
textctrl?