views:

29

answers:

2
A: 

I know this probably doesn't answer your question, but I recommend you close the file connection once you're done using it.

fd = open(files,'rb')
data=fd.readlines()

#Close the connection, you're done using it!
fd.close

#Now do what you want with data.
for i in data[]:
    item=i.strip()
    if item is not None:
       combobox.Append(item)
Serg
+1  A: 
combobox.SetSelection(0)  # select first item
Steven Sproat