⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 f26.htm

📁 GUI Programming with Python
💻 HTM
字号:
<HTML><HEAD><TITLE>Preface</TITLE><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.72"><LINKREL="HOME"TITLE="GUI Programming with Python: QT Edition"HREF="book1.htm"><LINKREL="PREVIOUS"TITLE="GUI Programming with Python: QT Edition"HREF="book1.htm"><LINKREL="NEXT"TITLE="For whom is this book        intended"HREF="x43.htm"></HEAD><BODYCLASS="PREFACE"BGCOLOR="#FFFFFF"TEXT="#000000"LINK="#0000FF"VLINK="#840084"ALINK="#0000FF"><DIVCLASS="NAVHEADER"><TABLESUMMARY="Header navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">GUI Programming with Python: QT Edition</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="book1.htm"ACCESSKEY="P">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom"></TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="x43.htm"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="PREFACE"><H1><ANAME="PREFACE">Preface</A></H1><DIVCLASS="TOC"><DL><DT><B>Table of Contents</B></DT><DT><AHREF="f26.htm#PREFACEUSINGPYQT">Who is using PyQt</A></DT><DT><AHREF="x43.htm">For whom is this book        intended</A></DT><DT><AHREF="x52.htm">How to read this book</A></DT><DT><AHREF="x61.htm">Conventions</A></DT><DT><AHREF="x76.htm">Acknowledgments</A></DT></DL></DIV><P>The main topic of this book is application      development using PyQt, a library extension to the Python      programming language &#8212; a library that is meant to form the      basis for GUI programming. PyQt is free software, but there is      also a commercial IDE available, BlackAdder, that is specially      written to assist working with PyQt. I will show you the ins and      outs of PyQt by developing a complete and complex application.</P><P>Like most thirty&#8211;somethings who      started programming in their teens, I've worked with a lot of      different technologies. I started with Sinclair Basic, going on      to Turbo Pascal and SNOBOL &#8212; I have developed for Windows      in pure C, with Borland Pascal and with Visual Basic. I've done      my stretch with Oracle Forms, and served as a Java developer. On      Linux, I've wet my feet with Free Pascal, with C++, using XForms      and Qt. And just when I was getting fond of Qt and C++, I found      out about Python &#8212; a few years ago now. I found      programming with PyQt to be a lot more fun than anything else,      and productive fun, too.</P><P>For sheer productivity, nothing beats      Python and PyQt. And while there's always something new to learn      or explore in Python, if you're in the mood, it's easy and      pleasant to write useful applications from the first day. No      other programming language or library has ever given me      that.</P><P>So, when Cameron Laird, during a      discussion on the comp.lang.python newsgroup suggested that I'd      write a book on this particular way of developing GUI      applications with Python, I started to think &#8212; and more      than think. I started to contact publishers, until one day Shawn      Gordon of TheKompany brought me into contact with Joshua Drake      of Opendocs. I started writing text and code almost      immediately.</P><P>Joshua's patience has been monumental      &#8212; I should have written this book between February and      May, but it took me until November. All I can say for myself is      that a lot of effort has gone into the book. I discuss most of      the concepts and classes of the Qt library, which might be      useful not only to Python developers, but also to C++      developers, and I have written a <SPAN><ICLASS="EMPHASIS">lot</I></SPAN> of      example scripts.</P><P>Where Bruce Eckel (of <ICLASS="CITETITLE">Thinking        in Java</I> fame) favors small example programs      because they clearly illustrate the matter in hand, John Grayson      in <ICLASS="CITETITLE">Python and Tkinter</I> argues that larger      real-life applications are more useful because they don't hide      the complexity that is a part of any programming effort.</P><P>Both are right, of course, so I decided to      give you both small examples and one really large one. Part I      and II of this book  concern themselves with concepts: here the      examples are small, often amounting to less than one page of      code. Part III takes you through the development of a complete,      complex application. In this case an editor, but one with a lot      of extra features. I think it's a very good way of learning what      developing complex applications entails - I spare you none of      the nasty details that software development entails.</P><P>I have tried to keep to a very clear style      of coding, with few or none of the clever hacks that are      possible in Python &#8212; like adding the methods of one class      to another, or creating lists of function objects. The purpose      is to tell you about writing real applications using Python and      Qt. Clever hacking has its place, but is best savored on its      own.</P><P>The emphasis of the book is also firmly on      application development, not on creating graphics per se &#8212;      although several techniques are mentioned here and there that      have to do with creating charts and graphs.</P><DIVCLASS="SECT1"><H1CLASS="SECT1"><ANAME="PREFACEUSINGPYQT">Who is using PyQt</A></H1><P>The combination of Python and Qt is        extremely powerful, and is used in a wide variety of        applications. People are scripting OpenGL applications with        it, creating complex 3D models, animation applications,        writing database applications, games, utilities and hardware        monitoring applications. It is used in open source projects,        but also by large companies, like Disney Television and Media.        If you're not working on embedded software, hardware drivers        or a new operating system, chances are that PyQt is the right        choice for you, too.</P></DIV></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLESUMMARY="Footer navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="book1.htm"ACCESSKEY="P">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="book1.htm"ACCESSKEY="H">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="x43.htm"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">GUI Programming with Python: QT Edition</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top">&nbsp;</TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">For whom is this book        intended</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -