[PyQt] PyQt book Rapid GUI Programming with Python and Qt now available
Hi, I am delighted to announce that Rapid GUI Programming with Python and Qt: The Definitive Guide to PyQt Programming has now been published in the US. The book is a hardback, 648 pages, ISBN 0132354187. The foreword was written by Phil Thompson (creator of PyQt), who was also one of the book's five technical reviewers. For a brief overview of the book and the table of contents, etc., see http://www.qtrac.eu/pyqtbook.html This web page also has links to places that sell the book, and has the full source code for the examples (and model answers to almost every exercise) available for downloading. The book covers PyQt4 (it has no coverage of PyQt3), and is best used with Python 2.5 and PyQt 4.2 or better, on Windows, Mac OS X, or an X11-based Unix or Linux. No prior knowledge of GUI programming is assumed, so don't worry if you've only ever done web programming:-) Since this is the only book that covers PyQt4 it is automatically the best---but I have not been complacent, and have worked extremely hard to make the book as accessible, useful, enjoyable, and interesting as possible. (Note for Safari readers: The printed version of the book uses the PDF I supplied as is, with fonts and typesetting exactly as I wanted them, whereas the Safari online edition was retypeset by the publisher.) -- Mark Summerfield, Qtrac Ltd., www.qtrac.eu ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] PyQt book Rapid GUI Programming with Python and Qt now available
I recommend this book to anyone that wants to learn PyQt, it is a excellent book with many real world examples with working code and really new stuff (it even use import from future in python). Regards, Miguel Angel. Mark Summerfield escribió: Hi, I am delighted to announce that Rapid GUI Programming with Python and Qt: The Definitive Guide to PyQt Programming has now been published in the US. The book is a hardback, 648 pages, ISBN 0132354187. The foreword was written by Phil Thompson (creator of PyQt), who was also one of the book's five technical reviewers. For a brief overview of the book and the table of contents, etc., see http://www.qtrac.eu/pyqtbook.html This web page also has links to places that sell the book, and has the full source code for the examples (and model answers to almost every exercise) available for downloading. The book covers PyQt4 (it has no coverage of PyQt3), and is best used with Python 2.5 and PyQt 4.2 or better, on Windows, Mac OS X, or an X11-based Unix or Linux. No prior knowledge of GUI programming is assumed, so don't worry if you've only ever done web programming:-) Since this is the only book that covers PyQt4 it is automatically the best---but I have not been complacent, and have worked extremely hard to make the book as accessible, useful, enjoyable, and interesting as possible. (Note for Safari readers: The printed version of the book uses the PDF I supplied as is, with fonts and typesetting exactly as I wanted them, whereas the Safari online edition was retypeset by the publisher.) ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] identify a QTreeWidgetItem
Hi everybody! I have created several QTreeWidgetItem and connected a signal itemClicked(QTreeWidgetItem *,int) on the QTreeWidget.: treeWidget=QtGui.QTreeWidget(widget) ... itemTree1=QtGui.QTreeWidgetItem(treeWidget) ... itemTree2=QtGui.QTreeWidgetItem(treeWidget) ... self.connect(treeWidget,QtCore.SIGNAL(itemClicked(QTreeWidgetItem *,int)),self.function) ... def function(self, item): print item 'print item' return: PyQt4.QtGui.QTreeWidgetItem object at 0x82cf62c. It's very abstract! I must identify QTreeWidgetItem in order to connect it an action (view a widget on the right), but how? With a method of the item reference? Which? I don't know. -- alteo_gange ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] NotImplementedError
Title: business Hi, I have been expanding my code with new features after which I experience an error NotImplementedError: QGraphicsItem.boundingRect() is abstract and must be overridden when using the rubber band. The procedure has been working before, but obviously I disturbed the devil. Any suggestions on what to change or do to get rid of the problem Cheers, Heinz -- Heinz A Preisig Professor of Process Systems Engineering Private: vre Bakklandet 62 B, 7013 Trondheim, Norway Department of Chemical Engineering Norwegian University of Science and Technology N 7491 Trondheim, Norway Tel direct: +47 735 92807 Tel mob: +47 9754 1334 e-mail: [EMAIL PROTECTED] web: www.chemeng.ntnu.no\~preisig ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] identify a QTreeWidgetItem
I'm sorry for the multiple messages. Few subscription problems. Now, it's OK. -- alteo_gange ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] PyQt book Rapid GUI Programming with Python and Qt now available
Excuse in advance for my bad english. Thank you very much Mark for your book . I'm going to command it as soon as possible (but it seems to me your book will be accessible in France only at the end of november). a+ ;) -- Venez faire un tour ici : http://ekd.tolosano.info http://monsitt.irruption.net http://irruption.net/progdudim ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] identify a QTreeWidgetItem
On Tuesday 23 October 2007 02:13, alteo_gange wrote: Hi everybody! I have created several QTreeWidgetItem and connected a signal itemClicked(QTreeWidgetItem *,int) on the QTreeWidget. treeWidget=QtGui.QTreeWidget(widget) ... itemTree1=QtGui.QTreeWidgetItem(treeWidget) ... itemTree2=QtGui.QTreeWidgetItem(treeWidget) ... self.connect(treeWidget,QtCore.SIGNAL(itemClicked(QTreeWidgetItem *,int)),self.function) ... def function(self, item): print item 'print item' return: PyQt4.QtGui.QTreeWidgetItem object at 0x82cf62c. It's very abstract! I must identify QTreeWidgetItem in order to connect it an action (view a widget on the right), but how? With a method of the item reference? Which? I don't know. Store the items in a dict as you create them: self.itemDict = {} itemTree1=QtGui.QTreeWidgetItem(treeWidget) self.itemDict [itemTree1] = ?? # could be the associated widget that you want # to connect to, or a # string identifier itemTree2=QtGui.QTreeWidgetItem(treeWidget) self.itemDict [itemTree2] = ?? ... def function (self, item): widget = self.itemDict [item] ... Jim ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt