Re: Setting the value of one cell in QTableWidget fills everything.

2008-03-29 Thread Constantly Distracted
> Move the creation of the QTableWidgetItem() to the inner loop (and call > it "item" rather than "items"). > > Phil Thanks, that works perfectly. -- http://mail.python.org/mailman/listinfo/python-list

Re: Setting the value of one cell in QTableWidget fills everything.

2008-03-28 Thread Phil Thompson
On Friday 28 March 2008, Constantly Distracted wrote: > I've just started PyQt programming and I've run into this little > problem. When I set the text of one cell in my table, all the other > cells fill with that value. ...because you have only created a single QTableWidgetItem instance, rather

Re: Setting the value of one cell in QTableWidget fills everything.

2008-03-28 Thread Gabriel Genellina
En Fri, 28 Mar 2008 12:01:01 -0300, Constantly Distracted <[EMAIL PROTECTED]> escribió: > I've just started PyQt programming and I've run into this little > problem. When I set the text of one cell in my table, all the other > cells fill with that value. > def filltable(self): > ite

Setting the value of one cell in QTableWidget fills everything.

2008-03-28 Thread Constantly Distracted
I've just started PyQt programming and I've run into this little problem. When I set the text of one cell in my table, all the other cells fill with that value. All I wanted to do was run a loop, printing in each cell the row and column number. Here's the code. -- fro