Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #44281

Re: QTableWidget updating columns in a single row

References <1a87f00d-636d-4795-80d5-7bf196d1177f@googlegroups.com> <5c8ead62-ebc8-429c-a531-9592a958983d@googlegroups.com>
From Chris “Kwpolska” Warrick <kwpolska@gmail.com>
Date 2013-04-24 19:57 +0200
Subject Re: QTableWidget updating columns in a single row
Newsgroups comp.lang.python
Message-ID <mailman.1028.1366826275.3114.python-list@python.org> (permalink)

Show all headers | View raw


On Wed, Apr 24, 2013 at 7:12 PM, Sara Lochtie <sara.lochtie@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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

QTableWidget updating columns in a single row Sara Lochtie <sara.lochtie@gmail.com> - 2013-04-23 23:22 -0700
  Re: QTableWidget updating columns in a single row Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2013-04-24 09:58 +0200
  Re: QTableWidget updating columns in a single row Sara Lochtie <sara.lochtie@gmail.com> - 2013-04-24 10:12 -0700
    Re: QTableWidget updating columns in a single row Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2013-04-24 19:57 +0200
    Re: QTableWidget updating columns in a single row Vincent Vande Vyvre <vincent.vandevyvre@swing.be> - 2013-04-24 20:51 +0200
      Re: QTableWidget updating columns in a single row Sara Lochtie <sara.lochtie@gmail.com> - 2013-04-26 12:14 -0700

csiph-web