how come .insert() don't work

Bennie bennie at rotzjes.nl
Wed Oct 27 17:46:58 EDT 2004


Hi all,

I have a little problem.

def tekst_in(self, tag):
		tekst_tag={'p': '\t\t<p>\n\n\t\t</p>\n', 'br': '<br />'}
		print tekst_tag[tag]
works fine in my class

But...
def tekst_in(self, tag):
		tekst_tag={'p': '\t\t<p>\n\n\t\t</p>\n', 'br': '<br />'}
		self.tekst.insert(INSERT, tekst_tag[tag])

Then I get a AttributeError...
I seached the net, can come op white a answer.
So I hope You all can!

Bennie,
	



More information about the Python-list mailing list