Rapid GUI Programming
with Python and Qt
Prentice Hall
Open Source Software Development Series
Arnold Robbins, Series Editor
“Real world code from real world applications”
Open Source technology has revolutionized the computing world. Many large-scale projects are in
production use worldwide, such as Apache, MySQL, and Postgres, with programmers writing applications
in a variety of languages including Perl, Python, and PHP. These technologies are in use on many different
systems, ranging from proprietary systems, to Linux systems, to traditional UNIX systems, to mainframes.
The Prentice Hall Open Source Software Development Series is designed to bring you the best of these
Open Source technologies. Not only will you learn how to use them for your projects, but you will learn
from them. By seeing real code from real applications, you will learn the best practices of Open Source
developers the world over.
Titles currently in the series include:
Linux
®
Debugging and Performance Tuning
Steve Best
0131492470, Paper, ©2006
The Defi nitive Guide to the Xen Hypervisor
David Chisnall
013234971X, Hard, ©2008
Understanding AJAX
Joshua Eichorn
0132216353, Paper, ©2007
The Linux Programmer’s Toolbox
John Fusco
0132198576, Paper, ©2007
Embedded Linux Primer
Christopher Hallinan
0131679848, Paper, ©2007
The Apache Modules Book
Nick Kew
0132409674, Paper, © 2007
SELinux by Example
Frank Mayer, David Caplan, Karl MacMillan
0131963694, Paper, ©2007
UNIX to Linux® Porting
Alfredo Mendoza, Chakarat Skawratananond,
Artis Walker
0131871099, Paper, ©2006
Rapid Web Applications with TurboGears
Mark Ramm, Kevin Dangoor, Gigi Sayfan
0132433885, Paper, © 2007
Linux Programming by Example
Arnold Robbins
0131429647, Paper, ©2004
The Linux
®
Kernel Primer
Claudia Salzberg, Gordon Fischer,
Steven Smolski
0131181637, Paper, ©2006
Rapid GUI Programming with Python and Qt
Mark Summerfi eld
0132354187, Hard, © 2008
New to the series: Digital Short Cuts
Short Cuts are short, concise, PDF documents designed specifi cally for busy technical professionals like
you. Each Short Cut is tightly focused on a specifi c technology or technical problem. Written by industry
experts and best selling authors, Short Cuts are published with you in mind — getting you the technical
information that you need — now.
Understanding AJAX:
Consuming the Sent Data with XML and JSON
Joshua Eichorn
0132337932, Adobe Acrobat PDF, © 2007
Debugging Embedded Linux
Christopher Hallinan
0131580132, Adobe Acrobat PDF, © 2007
Using BusyBox
Christopher Hallinan
0132335921, Adobe Acrobat PDF, © 2007
Rapid GUI Programming
with Python and Qt
The Definitive Guide to PyQt Programming
Mark Summerfield
Upper Saddle River, NJ
·
Boston
·
Indianapolis
·
San Francisco
New York
·
Toronto
·
Montreal
·
London
·
Munich
·
Paris
·
Madrid
Capetown
·
Sydney
·
Tokyo
·
Singapore
·
Mexico City
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as
trademarks. Where those designations appear in this book, and the publisher was aware of a trademark
claim, the designations have been printed with initial capital letters or in all capitals.
The author and publisher have taken care in the preparation of this book, but make no expressed or implied
warranty of any kind and assume no responsibility for errors or omissions. No liability is assumed for
incidental or consequential damages in connection with or arising out of the use of the information or
programs contained herein.
The publisher offers excellent discounts on this book when ordered in quantity for bulk purchases or
special sales, which may include electronic versions and/or custom covers and content particular to your
business, training goals, marketing focus, and branding interests. For more information, please contact:
U.S. Corporate and Government Sales
(800) 382-3419
corpsales@pearsontechgroup.com
For sales outside the United States, please contact:
International Sales
international@pearsoned.com
Visit us on the Web: www.prenhallprofessional.com
Library of Congress Cataloging-in-Publication Data
Summerfield, Mark
Rapid GUI programming with Python and Qt : the definitive guide to PyQt programming / Mark
Summerfield.
p. cm.
Includes bibliographical references and index.
ISBN 978-0-13-235418-9 (hardcover : alk. paper)
1. Qt (Electronic resource) 2. Graphical user interfaces (Computer systems) 3. Python (Computer
program language) I. Title.
QA76.9.U83S89 2007
005.1’2—dc22
2007034852
Copyright
©
2008 Pearson Education, Inc.
All rights reserved. Printed in the United States of America.
Trolltech
®
,Qt
®
and the Trolltech logo are registered trademarks of Trolltech ASA.
ISBN-13: 978-0-13-235418-9
ISBN-10: 0-13-235418-7
Text printed in the United States on recycled paper at Edwards Brothers in Ann Arbor, Michigan.
First printing, October 2007