wx.checklistbox
Philippe Martin
pmartin at snakecard.com
Sat Apr 1 11:33:59 EST 2006
Hi,
I do not see where you close the file: I beleve you need to close it to
flush information prior to reading again.
Philippe
luca72 wrote:
> i have again one simple problem:
> the script is this:
>
> def output(self):
> global lista2
> lista2 = open('/lista2', 'w')
> iteminlista2 = self.checkListBox2.GetStrings()
> lista2.writelines(iteminlista2)
>
> def input1(self):
> lista2leggi = open('/lista2', 'r')
> cd = lista2leggi.readlines()
> self.checkListBox2.AppendItems(cd)
>
>
>
> The write file is like:
>
> item1item2item3
>
> when i read the and i put the item in the checklistbox , i don't find :
>
> item1
> item2
> item3
>
> but :
>
> item1item2item3
>
> How to do for have it like :
>
> item1
> item2
> item3
>
> Regards
>
> Luca
More information about the Python-list
mailing list