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

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to