To reinforce what high_flyer is asking, where are you performing the first step in this loop ("read the line")?For each line in the file:
- read the line
- insert it into the combobox
And since everything in python depends on indentation, what do you think happens to "tmod" (or "tmodel" - you seem to have not cut and pasted very carefully) after the first time through the for loop?
Bookmarks