Re: [PyQt] Create an installer package
hi, sorry by my english your better option is make an egg python installer with setup.py enviroment.. and the rest of process... in the internet exist many examples about it how to make it ... the way as you say like windows with similars wizard setup can use installjammer.. to make a .bin (binary file), of your project.. with this soft can see the wizard installer setup like windows ask some options to install and other things.. and in both case... do some action after finish to prepare the enginge with your database importing the schema your are and the rest of things you need to can run your app... MySQL provide the mysqldump to export all your data to file.sql to can use as your installer to can import into app to prepare the enviroment after finish... after that is continue prepare th rest part with all your need... but right now.. for python setup packaging.. ask better at python list... and for mysql dumping file ask at mysql list. for more info.. best regards. :-) Tony El 5 de abril de 2012 04:10, Vijayakumar aphrovijay.s...@gmail.comescribió: Hi, I have developed an application which has nearly 10 individual python files. These files are core of the application. Now i want to convert these files into an installer package. I also want to do something similar for windows compatibility as well. My application also uses MySQL. I use MySQL to store and retrieve values used in the application. I remember using SQL Lite with Andriod programming and the database file can be exported in that case. Am not sure about doing the same for MySQL. Could anyone please provide their suggestions on the both installer package and database support. How would the database support be maintained when an installer is created ? Is it even possible ? Thank you. -- View this message in context: http://python.6.n6.nabble.com/Create-an-installer-package-tp4688832p4688832.html Sent from the PyQt mailing list archive at Nabble.com. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt -- Antonio Peña Secure email with PGP 0x8B021001 available at http://pgp.mit.edu Fingerprint: 74E6 2974 B090 366D CE71 7BB2 6476 FA09 8B02 1001 ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Couldn't find PyQt 4.8.x with Qt 4.7 to download
Here can found it! http://www.lfd.uci.edu/~gohlke/pythonlibs/ El 3 de abril de 2012 05:28, Adil Güneş Akbaş a...@ozguryazilim.com.trescribió: Hi, I had some problems on converting a Python script into an .exe(Windows) package. I could convert it successfully but it didn't work as expected. I assume that the problem is about Qt 4.8, which is included in PyQt 4.9.1, since there is no problem on Qt 4.7 with the same script. Is there any chance to find a PyQt 4.8.x Windows 32 bit installer including Qt 4.7 ? There are only PyQt 4.9.1 installers at its download page[1], and I couldn't find any old version after a search. Regards, -- Adil Güneş Akbaş Özgür Yazılım A.Ş. ~$ http://www.ozguryazilim.com.tr [1] http://www.riverbankcomputing.co.uk/software/pyqt/download ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt -- Antonio Peña Secure email with PGP 0x8B021001 available at http://pgp.mit.edu Fingerprint: 74E6 2974 B090 366D CE71 7BB2 6476 FA09 8B02 1001 ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] Fwd: question about image on QWebKit
Hi, again.. i send this twice because the image not exist i update URL to can see my trouble... i´m working over linux, and when i try to execute on windows i get this image bug on QWebKit check the image and take a look of the airplane between the 2 green-red lines http://imagebin.org/195291 (the image exist just for 14 days) on linux x86 and x64 works fine the icon airplane in the QWebKit browser and in the browser of system any chromiun, friefox etc. on windows x86 works fine the icon in the browser but not in QWebkit and is the same code. softwares implemented: python 2.7.2 and PyQt 4.9.1-py27 any suggestion? Kind Regards -- Antonio Peña Secure email with PGP 0x8B021001 available at http://pgp.mit.edu Fingerprint: 74E6 2974 B090 366D CE71 7BB2 6476 FA09 8B02 1001 -- Antonio Peña Secure email with PGP 0x8B021001 available at http://pgp.mit.edu Fingerprint: 74E6 2974 B090 366D CE71 7BB2 6476 FA09 8B02 1001 ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] ui gives different look in Designer than when loaded
You can set this enviroment of the GUI to any plataform fixing the theme with this like when you see in the Qt-Designer with View-Form adding this lines as example in the def main(): QApplication.setStyle(QStyleFactory.create(Cleanlooks)) QApplication.setPalette(QApplication.style().standardPalette()) Kind regards 2012/1/16 C. B. Esquire crackerbu...@gmail.com The general look of my gui while developed in Designer is different than when I compile it and run it, or load up the UI file in python. Is there a way I can find out what my OS (KDE) is doing to give the look it does to the UI while building in Designer? I'd much rather keep the look I get in Designer. [image: image.jpeg] ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt -- Antonio Peña Secure email with PGP 0x8B021001 available at http://pgp.mit.edu Fingerprint: 74E6 2974 B090 366D CE71 7BB2 6476 FA09 8B02 1001 ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] new widget?
Hi list Just for ask... If someone extra want to add new widgets components to can use into Qt4-Designer... how or where can read about it? if exist that way... could be possible to make one with pyqt4 and not using C++? in my case prefers pyqt4 because don´t know anything about it C/C++ simple example: New component to handler the QSql and can drag and drop into Form to can use it for database in the app. or make other Widget Component to can handler Proxys with QNetworkProxy I´m thinking like Delphi to can make more powerful Qt4-Designer... who devel exactly that? Qt people? or can PyQt4 devel some extra widgets to can use it into Qt4-Designer? for my info... maybe this someone ask before. :-) Kind Regards -- Antonio Peña Secure email with PGP 0x8B021001 available at http://pgp.mit.edu Fingerprint: 74E6 2974 B090 366D CE71 7BB2 6476 FA09 8B02 1001 ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Android support?
Well... maybe this help http://www.pyside.org/ 2011/11/26 Albert Cervera i Areny alb...@nan-tic.com ** A Dissabte, 26 de novembre de 2011 13:11:48, Phil Thompson va escriure: On Sat, 26 Nov 2011 19:50:08 +0800, zw g pekingmas...@gmail.com wrote: Thanks for your quick reply, Phil. I googled that Necessitas can develop apps for Android in Qt4. (Still work in progress, no release version yet) If unofficial patch for python is available, then may i ask, is there any plan to support Android development by PyQt in the future? As with all these things it depends on whether there is a real need, ie. how many people and how often do people ask the question you asked. Of the different mobile platforms Android is clearly the most interesting (because of market share) but at the moment I don't perceive any great demand. Then, let me say that I'm actually interested in it. Haven't asked in the mailing list simply because I knew there wasn't support yet, but I keep an eye on necessitas and really look forward for such a port. Phil ___ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt -- Albert Cervera i Areny http://www.NaN-tic.com Tel: +34 93 553 18 03 http://twitter.com/albertnan http://www.nan-tic.com/blog ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt -- Antonio Peña Secure email with PGP 0x8B021001 available at http://pgp.mit.edu Fingerprint: 74E6 2974 B090 366D CE71 7BB2 6476 FA09 8B02 1001 ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] Fwd: Android support?
sorry . this one is my link not before http://thp.io/2011/pyside-android/ explain how use python with qt bindings for android cheers -- Forwarded message -- From: Tony Peña emperor...@gmail.com Date: 2011/11/26 Subject: Re: [PyQt] Android support? To: pyqt@riverbankcomputing.com Well... maybe this help http://www.pyside.org/ 2011/11/26 Albert Cervera i Areny alb...@nan-tic.com ** A Dissabte, 26 de novembre de 2011 13:11:48, Phil Thompson va escriure: On Sat, 26 Nov 2011 19:50:08 +0800, zw g pekingmas...@gmail.com wrote: Thanks for your quick reply, Phil. I googled that Necessitas can develop apps for Android in Qt4. (Still work in progress, no release version yet) If unofficial patch for python is available, then may i ask, is there any plan to support Android development by PyQt in the future? As with all these things it depends on whether there is a real need, ie. how many people and how often do people ask the question you asked. Of the different mobile platforms Android is clearly the most interesting (because of market share) but at the moment I don't perceive any great demand. Then, let me say that I'm actually interested in it. Haven't asked in the mailing list simply because I knew there wasn't support yet, but I keep an eye on necessitas and really look forward for such a port. Phil ___ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt -- Albert Cervera i Areny http://www.NaN-tic.com Tel: +34 93 553 18 03 http://twitter.com/albertnan http://www.nan-tic.com/blog ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt -- Antonio Peña Secure email with PGP 0x8B021001 available at http://pgp.mit.edu Fingerprint: 74E6 2974 B090 366D CE71 7BB2 6476 FA09 8B02 1001 -- Antonio Peña Secure email with PGP 0x8B021001 available at http://pgp.mit.edu Fingerprint: 74E6 2974 B090 366D CE71 7BB2 6476 FA09 8B02 1001 ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] Print with PyQt4 at Windows
Hi i need to devel an app ... and i guess i have all about develop with python + qt4 + use qtsql for the backend of database, a little designer but... how can i use data stored to print at Windows Printer?... exist some like QuickReport for Delphi? but for PyQt4? or some widget or module ... http://delphiallimite.blogspot.com/2009/01/creacin-de-informes-con-quickreport-i.html please just take a look the image.. to can see my question... i make son googles research and i only can get to make a PDF with QPrinter... but how can i designe the page . and setting the values into QPrint?.. because i want to some template to can draw some lines and set some values getting from database.. like link above any suggest / ideas? -- Antonio Peña Secure email with PGP 0x8B021001 available at http://pgp.mit.edu Fingerprint: 74E6 2974 B090 366D CE71 7BB2 6476 FA09 8B02 1001 ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] qwebview into qtabwidget
hi, i want some like this but not adding new tab http://stackoverflow.com/questions/4766186/qwebview-auto-tabs i have the tab and have 6 pages... i need said in the page(2, loadURL) thanxs for all -- Antonio Peña Secure email with PGP 0x8B021001 available at http://pgp.mit.edu Fingerprint: 74E6 2974 B090 366D CE71 7BB2 6476 FA09 8B02 1001 ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] how aim same function to other tables
hi I want to use same function to other tables like this tablename = Searchtable but could be table1 table2 table3 ... table n addAction.triggered.connect(self.addFriend) - This works ok def addFriend( self, event): tablename = 'SearchtableWidget' table_obj = getattr(self.ui, tablename) current_row = table_obj.currentRow() current_vid = table_obj. item(current_row, 0) current_realname = table_obj.item(current_row, 2) total_vid = len(vid) insert = True if total_vid = 0: for i in range(0, total_vid): if int(str(current_vid.text())) == vid[i][0]: . rest code run fine --- if i pass this to prepare the connect when right-click button is active... addAction.triggered.connect(self.addFriend(self, 'SearchtableWidget')) -- need fix this because is running function before connected :| def addFriend( self, event, tablename): table_obj = getattr(self.ui, tablename) -this receive Searchtable same like before BUT... current_row = table_obj. currentRow() current_vid = table_obj.item(current_row, 0) current_realname = table_obj.item(current_row, 2) total_vid = len(vid) insert = True if total_vid = 0: for i in range(0, total_vid): if int(str(current_vid.text ())) == vid[i][0]: current_vid.text() - current.text() method NOT WORK... because when came tablename as argument is NoneType ...stop here... I guess to need some help with how can connect to a function with ARG as options... any idea? -- Antonio Peña Secure email with PGP 0x8B021001 available at http://pgp.mit.edu Fingerprint: 74E6 2974 B090 366D CE71 7BB2 6476 FA09 8B02 1001 ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Adding a table to GUI in QT Designer
yes it's possible to do that... read about QMenu classes to do the right click and maybe visit here to other examples http://www.rkblog.rk.edu.pl/w/p/python/#3 2011/8/22 Nader Abedrabbo aenad...@yahoo.com Greetings, I am new to PyQt. I am creating a GUI for a program I created in Python and I need to add a table with advanced functions in it. I am able to use QTableWidget to create the table, but there is no right click functionality to the table. I need to create a table to do these things: 1. Right click to perform a Cut Paste of data from Excel, clear data and so on that are usually available in other advanced softwares. 2. The number of rows in the table should be dynamically adjusted to the number of data being pasted. Is that functionality possible in PyQt? Thanks, Nader -- View this message in context: http://old.nabble.com/Adding-a-table-to-GUI-in-QT-Designer-tp32313584p32313584.html Sent from the PyQt mailing list archive at Nabble.com. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt -- Antonio Peña Secure email with PGP 0x8B021001 available at http://pgp.mit.edu Fingerprint: 74E6 2974 B090 366D CE71 7BB2 6476 FA09 8B02 1001 ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] Trying insert image into QTableWidget
Hi i trying set logoimage into cell of QtableWidget all code runs ok but can't see the image in the table i try with .gif and .png files any idea? heres the code: ./airlines/ (many logosfiles in ABC.gif and ABC.png) if exist show up ifnot just say the code of aircraft code_airline = row[0][:3] airlineCodePath = './airlines/%s.png' % code_airline try: if os.path.exists(airlineCodePath) is True: image = QtGui.QIcon(QtGui.QPixmap(airlineCodePath)) airline = QtGui.QTableWidgetItem(image) airline.setIcon(image) col_airline = QtGui.QTableWidgetItem(airline, 0) self.ui.PILOT_FullList.Seti(startrow, 1, code_airline) else: code_airline = '-' col_airline = QtGui.QTableWidgetItem(code_airline, 0) self.ui.PILOT_FullList.setItem(startrow, 0, col_airline) except: pass thanxs any way by all -- Antonio Peña Secure email with PGP 0x8B021001 available at http://pgp.mit.edu Fingerprint: 74E6 2974 B090 366D CE71 7BB2 6476 FA09 8B02 1001 ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Trying insert image into QTableWidget
Ohh.. about errors.. ok it is for try excep pass.. sorry for that.. and yes i have use Qlabel with Pixmap in other QWIdgetTab and works.. i try it with QLabel again thanxs 2011/8/4 Vincent Vande Vyvre vincent.vandevy...@swing.be ** Le 04/08/11 18:06, Tony Peña a écrit : Hi i trying set logoimage into cell of QtableWidget all code runs ok but can't see the image in the table i try with .gif and .png files any idea? heres the code: ./airlines/ (many logosfiles in ABC.gif and ABC.png) if exist show up ifnot just say the code of aircraft code_airline = row[0][:3] airlineCodePath = './airlines/%s.png' % code_airline try: if os.path.exists(airlineCodePath) is True: image = QtGui.QIcon(QtGui.QPixmap(airlineCodePath)) airline = QtGui.QTableWidgetItem(image) airline.setIcon(image) col_airline = QtGui.QTableWidgetItem(airline, 0) self.ui.PILOT_FullList.Seti(startrow, 1, code_airline) else: code_airline = '-' col_airline = QtGui.QTableWidgetItem(code_airline, 0) self.ui.PILOT_FullList.setItem(startrow, 0, col_airline) except: pass thanxs any way by all -- Antonio Peña Secure email with PGP 0x8B021001 available at http://pgp.mit.edu Fingerprint: 74E6 2974 B090 366D CE71 7BB2 6476 FA09 8B02 1001 ___ PyQt mailing list PyQt@riverbankcomputing.comhttp://www.riverbankcomputing.com/mailman/listinfo/pyqt Hi, Your construction is not exact icon = QtGui.QIcon(QtGui.QPixmap(image_path)) item = QtGui.QTableWidgetItem(icon, )# Second argument (required !) is text self.tableWidget.setItem(0, 0, item) Normaly you should have errors but with your try: except: pass ... -- Vincent V.V. Oqapy https://launchpad.net/oqapy . Qarte+7https://launchpad.net/qarte+7. PaQager https://launchpad.net/paqager ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt -- Antonio Peña Secure email with PGP 0x8B021001 available at http://pgp.mit.edu Fingerprint: 74E6 2974 B090 366D CE71 7BB2 6476 FA09 8B02 1001 ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Trying insert image into QTableWidget
ok nothing yet i refresh the code again here with QLabel now.. :| airlineCodePath = './airlines/%s.gif' % code_airline try: if os.path.exists(airlineCodePath) is True: airline = QtGui.QLabel() Pixmap = QtGui.QPixmap(airlineCodePath) airline.fileName = airlineCodePath col_airline = QtGui.QLabel.setPixmap(Pixmap) self.ui.PILOT_FullList.setItem(startrow, 0, col_airline) else: code_airline = '-' col_airline = QtGui.QTableWidgetItem(code_airline, 0) self.ui.PILOT_FullList.setItem(startrow, 0, col_airline) except: pass someone can made simple table 1x1 with a simple .gif, .png or .jpg example??? regards 2011/8/4 Tony Peña emperor...@gmail.com Ohh.. about errors.. ok it is for try excep pass.. sorry for that.. and yes i have use Qlabel with Pixmap in other QWIdgetTab and works.. i try it with QLabel again thanxs 2011/8/4 Vincent Vande Vyvre vincent.vandevy...@swing.be ** Le 04/08/11 18:06, Tony Peña a écrit : Hi i trying set logoimage into cell of QtableWidget all code runs ok but can't see the image in the table i try with .gif and .png files any idea? heres the code: ./airlines/ (many logosfiles in ABC.gif and ABC.png) if exist show up ifnot just say the code of aircraft code_airline = row[0][:3] airlineCodePath = './airlines/%s.png' % code_airline try: if os.path.exists(airlineCodePath) is True: image = QtGui.QIcon(QtGui.QPixmap(airlineCodePath)) airline = QtGui.QTableWidgetItem(image) airline.setIcon(image) col_airline = QtGui.QTableWidgetItem(airline, 0) self.ui.PILOT_FullList.Seti(startrow, 1, code_airline) else: code_airline = '-' col_airline = QtGui.QTableWidgetItem(code_airline, 0) self.ui.PILOT_FullList.setItem(startrow, 0, col_airline) except: pass thanxs any way by all -- Antonio Peña Secure email with PGP 0x8B021001 available at http://pgp.mit.edu Fingerprint: 74E6 2974 B090 366D CE71 7BB2 6476 FA09 8B02 1001 ___ PyQt mailing list PyQt@riverbankcomputing.comhttp://www.riverbankcomputing.com/mailman/listinfo/pyqt Hi, Your construction is not exact icon = QtGui.QIcon(QtGui.QPixmap(image_path)) item = QtGui.QTableWidgetItem(icon, )# Second argument (required !) is text self.tableWidget.setItem(0, 0, item) Normaly you should have errors but with your try: except: pass ... -- Vincent V.V. Oqapy https://launchpad.net/oqapy . Qarte+7https://launchpad.net/qarte+7. PaQager https://launchpad.net/paqager ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt -- Antonio Peña Secure email with PGP 0x8B021001 available at http://pgp.mit.edu Fingerprint: 74E6 2974 B090 366D CE71 7BB2 6476 FA09 8B02 1001 -- Antonio Peña Secure email with PGP 0x8B021001 available at http://pgp.mit.edu Fingerprint: 74E6 2974 B090 366D CE71 7BB2 6476 FA09 8B02 1001 ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] problems with populate qtablewidget
hi, some can help me with my little bit code http://pastebin.com/uyiiEYTvin this i have 2 problems... 1st. when i populate qtablewidget inthe debugger i can read all rows and columns value, 1 by 1.. but just show me out in the application 3 columns 2,3 and 4 with all rows values .. and 2nd problem is when i update again set ok the X,Y with new values but continues inserting Rows at the end of qtablewidget i guess the InsertRow could be the problem BUT, if i don't have that line.. all updates i do never see the values since 1st time so my table is always blank.. (maybe have other way to put the insertrow 1st time and reset for the again update) any ideas? i'm stuck here :S -- Antonio Peña Secure email with PGP 0x8B021001 available at http://pgp.mit.edu Fingerprint: 74E6 2974 B090 366D CE71 7BB2 6476 FA09 8B02 1001 ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] populate Qcombobox
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 overloaded call: QComboBox.addItem(QString, QVariant userData=QVariant()): argument 1 has unexpected type 'int' QComboBox.addItem(QIcon, QString, QVariant userData=QVariant()): argument 1 has unexpected type 'int' i Try with this form: for countries in cursor.execute(SELECT Country FROM iata_icao_codes;): self.connect(self.ui.country_list.insertItems(0, countries)) TypeError: arguments did not match any overloaded call: QObject.connect(QObject, SIGNAL(), QObject, SLOT(), Qt.ConnectionType=Qt.AutoConnection): argument 1 has unexpected type 'NoneType' QObject.connect(QObject, SIGNAL(), callable, Qt.ConnectionType=Qt.AutoConnection): argument 1 has unexpected type 'NoneType' QObject.connect(QObject, SIGNAL(), SLOT(), Qt.ConnectionType=Qt.AutoConnection): argument 1 has unexpected type 'NoneType' any idea? thanxs by the way -- Antonio Peña Secure email with PGP 0x8B021001 available at http://pgp.mit.edu Fingerprint: 74E6 2974 B090 366D CE71 7BB2 6476 FA09 8B02 1001 ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] populate Qcombobox
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.addItem(country) thanxs any way for all :) 2011/7/28 Vincent Vande Vyvre vincent.vandevy...@swing.be ** 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;): self.connect(self.ui.country_list.addItem(0, str(countries))) error: TypeError: arguments did not match any overloaded call: QComboBox.addItem(QString, QVariant userData=QVariant()): argument 1 has unexpected type 'int' QComboBox.addItem(QIcon, QString, QVariant userData=QVariant()): argument 1 has unexpected type 'int' i Try with this form: for countries in cursor.execute(SELECT Country FROM iata_icao_codes;): self.connect(self.ui.country_list.insertItems(0, countries)) TypeError: arguments did not match any overloaded call: QObject.connect(QObject, SIGNAL(), QObject, SLOT(), Qt.ConnectionType=Qt.AutoConnection): argument 1 has unexpected type 'NoneType' QObject.connect(QObject, SIGNAL(), callable, Qt.ConnectionType=Qt.AutoConnection): argument 1 has unexpected type 'NoneType' QObject.connect(QObject, SIGNAL(), SLOT(), Qt.ConnectionType=Qt.AutoConnection): argument 1 has unexpected type 'NoneType' any idea? thanxs by the way -- Antonio Peña Secure email with PGP 0x8B021001 available at http://pgp.mit.edu Fingerprint: 74E6 2974 B090 366D CE71 7BB2 6476 FA09 8B02 1001 ___ PyQt mailing list PyQt@riverbankcomputing.comhttp://www.riverbankcomputing.com/mailman/listinfo/pyqt The return of addItem, insertItem and other is always None ... cb = QtGui.QComboBox() print cb.insertItem(0, Item) None print cb.addItem(Item) None Why are you using 'connect' ? for countries in cursor.execute(SELECT Country FROM iata_icao_codes;): self.ui.country_list.insertItems(0, countries) No ? -- Vincent V.V. Oqapy https://launchpad.net/oqapy . Qarte+7https://launchpad.net/qarte+7. PaQager https://launchpad.net/paqager ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt -- Antonio Peña Secure email with PGP 0x8B021001 available at http://pgp.mit.edu Fingerprint: 74E6 2974 B090 366D CE71 7BB2 6476 FA09 8B02 1001 ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt