A-hoy hoy!
Basically I need to be able to use the sendLine() function when the definition is not under a LineReceiver class. Here's an example of what I mean.
But of course that won't work because sendLine is not under the Class EchoClient bit, How could I make this work?Code:def custom(): self.sendLine('text') class EchoClient(LineReceiver): def connectionMade(self): custom()
Thanks Bye!
Bookmarks