> 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
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
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
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