Re: pyqt4 qTableWidget add items help

2009-04-19 Thread Sebastian Wiesner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > from PyQt4 import ?? QtGui? QtCore? Those are already loaded other > options are pyqtconfig and uic and those don't sound correct... from PyQt4 import QtGui QtGui.QTableWidgetItem See [1] for an example. [1] http://hg.lunaryorn.de/snippets/fi

Re: pyqt4 qTableWidget add items help

2009-04-18 Thread ookrin
On Apr 18, 3:46 am, Sebastian Wiesner wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > > [...]> I've been trying > > >         while(len(orders)> i): > >             ui.tb1_tblOrders.setCurrentCell(i,0,orders[i][1]) > >             i+=1 > > > which to me, says go add in the first co

Re: pyqt4 qTableWidget add items help

2009-04-18 Thread Sebastian Wiesner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [...] > I've been trying > > while(len(orders)> i): > ui.tb1_tblOrders.setCurrentCell(i,0,orders[i][1]) > i+=1 > > which to me, says go add in the first column row with the first order, > and it makes sense to me Rea

Re: pyqt4 qTableWidget add items help

2009-04-18 Thread Diez B. Roggisch
ookrin schrieb: I've been searching around the internet for an example of how to add a list of items to the qTableWidget for the last few hours with little success. I have a list orders [[34,940,30,50,67], [50,56,35,30,57]] as my example here I built the qTableWidget in designer, so it already

pyqt4 qTableWidget add items help

2009-04-18 Thread ookrin
I've been searching around the internet for an example of how to add a list of items to the qTableWidget for the last few hours with little success. I have a list orders [[34,940,30,50,67], [50,56,35,30,57]] as my example here I built the qTableWidget in designer, so it already has the header col