Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #44249
| References | <1a87f00d-636d-4795-80d5-7bf196d1177f@googlegroups.com> |
|---|---|
| From | Chris “Kwpolska” Warrick <kwpolska@gmail.com> |
| Date | 2013-04-24 09:58 +0200 |
| Subject | Re: QTableWidget updating columns in a single row |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1012.1366790338.3114.python-list@python.org> (permalink) |
On Wed, Apr 24, 2013 at 8:22 AM, Sara Lochtie <sara.lochtie@gmail.com> wrote: > I have written a GUI that gets data sent to it in real time and this data is displayed in a table. Every time data is sent in it is displayed in the table in a new row. My problem is that I would like to have the data just replace the old in the first row. > > The table has 6 columns (A, B, C, D, E, F) I want the new data to continue replacing the old data in the same row unless the data that goes under column A changes, at which point a new row would be added. > > Does anyone have tips on how to approach this? I can post a portion of my code to get a better idea of what I have done. > > > -- > http://mail.python.org/mailman/listinfo/python-list My suggestion: compare the new data’s column A with the existing data (store a copy of the old data somewhere?). If it differs, add a new row; if it doesn’t, change an existing one. If you need help with the exact implementation, show the *entire* code. -- 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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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