Twisted and Tkinter
Fredrik Lundh
fredrik at pythonware.com
Thu Apr 27 14:51:47 EDT 2006
"Chris" <cesugden at gmail.com> skrev i meddelandet news:1146161267.955195.308200 at g10g2000cwb.googlegroups.com...
> it now comes up with the error message
>
> Traceback (most recent call last):
> File "C:\Python24\lib\lib-tk\Tkinter.py", line 1345, in __call__
> return self.func(*args)
> File "C:\Documents and Settings\chris\Desktop\Python\client.py", line
> 30, in sendMessage
> self.sendLine("Test")
> AttributeError: ChatFactory instance has no attribute 'sendLine'
Which is exactly what one would expect from this method
def sendMessage(self):
self.sendLine("Test")
if the class you inherit from doesn't provide a sendLine method.
But since you wrote that method, what did you expect it to do ?
(If this is code from some Twisted manual or sample, it's probably time
to double-check your code against the source...)
</F>
More information about the Python-list
mailing list