wx.checklistbox

luca72 lucaberto at libero.it
Mon Apr 3 08:04:38 EDT 2006


I have solve in this way i'm sure it's not the best, but it works:

 lista1leggi = open('/lista1.txt', 'r')
        mt = lista1leggi.readlines()
        lunghezzamt = len(mt)
        lucianino = 0
        while lucianino < (lunghezzamt - 1):
            if mt[lucianino] == '\n':
                del mt[lucianino]
                lucianino = lucianino - 1
                lunghezzamt = lunghezzamt - 1
            else: lucianino = lucianino + 1

        pippo = self.checkListBox1.AppendItems(mt)

Ragards Luca




More information about the Python-list mailing list