Text widget - insert line
Reinhold Birkenfeld
reinhold-birkenfeld-nospam at wolke7.net
Mon Nov 22 12:45:56 EST 2004
beps wrote:
> Eric Brunel ha scritto:
>> I'm not sure I understand the question... Do you have some code generating
> the
>> first, and you want it to generate the second? If my guess is correct, can
> you
>> show us the code? It will surely only be a matter of inserting a 'n' at the
> end
>> of each line, then do a textWidget.insert(END, ...), but I'm just guessing
> here...
>
> Here there's my code:
> def show_customers(self, customers) :
> ## data is a list
> for data in customers:
> dato = operator.concat(str(data), '/n')
^^
You have to use \n, not /n.
Reinhold
--
[Windows ist wie] die Bahn: Man muss sich um nichts kuemmern, zahlt fuer
jede Kleinigkeit einen Aufpreis, der Service ist mies, Fremde koennen
jederzeit einsteigen, es ist unflexibel und zu allen anderen Verkehrs-
mitteln inkompatibel. -- Florian Diesch in dcoulm
More information about the Python-list
mailing list