keeping twisted and wxPython in sync

crow wentlv at
Wed Feb 8 02:15:02 CET 2012

On Feb 8, 2:41 am, "Littlefield, Tyler" <ty... at> wrote:
> Hello all:
> I have a couple questions. First, is there a way to know if connectTCP
> failed? I am writing a client with Twisted and would like to be able to
> notify the user if they couldn't connect.
> Second, I set the protocol on my factory after a connection has been
> made. So when I send my user and password, that is when I connect. Is
> there a way to handle waiting for the connection to complete?
> --
> Take care,
> Ty
> Web:
> The Aspen project: a light-weight barebones mud engine
> Sent from my toaster.

And for connection failed, you can write some hook code in
connectionLost() method, this method will be called when connection

More information about the Python-list mailing list