Chamillionaire2
July 1st, 2010, 06:04 PM
Ahoy Sailor!
class LoopingCall():
def custom(self, interval=3, now=True):
print "Sending!"
self.sendLine('|abc|')
self.sendLine('|def|')
class Echo(LineReceiver):
def connectionMade(self):
var = LoopingCall()
print "Roger, Someones connected!"
var.custom()
** After some hard hours of googling and reading tutorial I finally figured it out!
class LoopingCall():
def custom(self, interval=3, now=True):
print "Sending!"
self.sendLine('|abc|')
self.sendLine('|def|')
class Echo(LineReceiver):
def connectionMade(self):
var = LoopingCall()
print "Roger, Someones connected!"
var.custom()
** After some hard hours of googling and reading tutorial I finally figured it out!