[wxPython] VTK + wxPython flicker issue on Linux/GTK.

Try adding '\r\n' onto the end of each message you send. I haven't tested it
but I think that should do it.

-Drew

···

-----Original Message-----
From: wxpython-users-admin@lists.sourceforge.net
[mailto:wxpython-users-admin@lists.sourceforge.net]On Behalf Of Stephen
Aichele
Sent: Thursday, March 15, 2001 9:14 AM
To: wxpython-users@lists.sourceforge.net
Subject: RE: [wxPython] Multithreading, Network programming, and
wxPython

Rob,

thanks for the suggestions and the links to the MUD clients.
I haven't yet pulled down the code for those clients because I've been
working with the code of a simple telnet client I found in the Python
Annotated Archives book. Unfortunately, the server you posted will
recognize a connection, but it won't print out text as its entered (not a
problem with the basic Unix telnet client I've been using.).'

So I'm thinking that, for me, before getting into the more complex stuff, I
would just like to figure out how, using a client written in python, to get
my text on the screen of this server. Below is the code for a *very* simple
client that I've been using- if you or anyone else has suggestions about how
to get the server to display the text that is being sent it would help a
lot.

back to tinkering.
thanks!
Steve

code:

#!/usr/bin/env python

## a simple script for setting up a tcp/ip client

from socket import *

HOST = "192.168.1.111" #where server is located on my lan
PORT = 8001
ADDR = (HOST,PORT)

tcpCliSock = socket(AF_INET, SOCK_STREAM)
tcpCliSock.connect(ADDR)

while 1:
    data = raw_input('> ')
    if not data: break
    tcpCliSock.send(data)
tcpCliSock.close()

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users

yes, adding the "\r\n\ was exactly what was needed. there was a little clean-up with the extraneous newline,
but that's it. Other than that I've been going through the server code line by line/ class by class, and it looks
very cool. I'm anxious to begin modifying it. Will let you know how it goes.

-Steve

#!/usr/bin/env python

## a simple script for setting up a tcp/ip client

from socket import *

HOST = "192.168.1.111" #where server is located on my lan
PORT = 8001
ADDR = (HOST,PORT)

tcpCliSock = socket(AF_INET, SOCK_STREAM)
tcpCliSock.connect(ADDR)

while 1:
    data = raw_input('> ')
    if not data: break

      data = data[0:len(data)-1] + "\r\n"

···

    tcpCliSock.send(data)
tcpCliSock.close()

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/wxpython-users