[PyQt] a newbie pyqt question, the pyqt book related

lotr py lotrpy at gmail.com
Thu May 29 09:08:30 BST 2008


Hi, Sorry for my bad english and PyQt skill.
I am reading the book "Rapid GUI Programming with Python and Qt The
Definitive Guide to PyQt Programming", my question is related to
chap08/mymovies.pyw.
near the end of MainWindow.updateTable() there is
        if selected is not None:
            selected.setSelected(True)
            self.table.setCurrentItem(selected)
            self.table.scrollToItem(selected)
what I want to ask is, what's the mean of "selected.setSelected(True)",
isn't self.table.setCurrentItem(selected) enough here?
Thank in advance for your reply.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20080529/737ba325/attachment.html


More information about the PyQt mailing list