Re: [PyQt] populate Qcombobox

2011-07-28 Thread Tony Peña
oh .. ok.. i solved ok my trouble.. i'm complicated too much by anything with 2 lines i fix my problem :) countries = cursor.execute("SELECT DISTINCT(Country) FROM iata_icao_codes desc;") for line in countries: country = "%s" % line self.ui.country_list.add

Re: [PyQt] populate Qcombobox

2011-07-28 Thread Vincent Vande Vyvre
Le 28/07/11 20:22, Tony Peña a écrit : Hi.  I have some data into DB and i want to populate that into Combobox and get some errors        for countries in cursor.execute("SELECT Country FROM iata_icao_codes;"):

[PyQt] populate Qcombobox

2011-07-28 Thread Tony Peña
Hi. I have some data into DB and i want to populate that into Combobox and get some errors for countries in cursor.execute("SELECT Country FROM iata_icao_codes;"): self.connect(self.ui.country_list.addItem(0, str(countries))) error: TypeError: arguments did not match any over