QTableWidget updating columns in a single row

Chris “Kwpolska” Warrick kwpolska at gmail.com
Wed Apr 24 13:57:26 EDT 2013


On Wed, Apr 24, 2013 at 7:12 PM, Sara Lochtie <sara.lochtie at gmail.com> wrote:
> So that is where I am stuck. I don't how to compare them and I am trying to avoiding saving the data to a file.

To a file?  Just store it in a class attribute and you will be fine.
You have it in self.data already.  Unless that structure doesn’t work,
then “mirror” your table in a Python array.  (alternatively, you could
query QTableWidgetItem.text() for every existing item, but that’s
crazy.)

--
Kwpolska <http://kwpolska.tk> | GPG KEY: 5EAAEA16
stop html mail                | always bottom-post
http://asciiribbon.org        | http://caliburn.nl/topposting.html



More information about the Python-list mailing list