wx.checklistbox
luca72
lucaberto at libero.it
Sat Apr 1 09:04:10 EST 2006
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