This is the code repository for Qt5 Python GUI Programming Cookbook, published by Packt.
** Building responsive and powerful cross-platform applications with PyQt**
PyQt is one of the best cross-platform interface toolkits currently available; it's stable, mature, and completely native. If you want control over all aspects of UI elements, PyQt is what you need. This book will guide you through every concept necessary to create fully functional GUI applications using PyQt, with only a few lines of code.
This book covers the following exciting features: Use basic Qt components, such as a radio button, combo box, and sliders Use QSpinBox and sliders to handle different signals generated on mouse clicks Work with different Qt layouts to meet user interface requirements Create custom widgets and set up customizations in your GUI Perform asynchronous I/O operations and thread handling in the Python GUI Employ network concepts, internet browsing, and Google Maps in UI Use graphics rendering and implement animation in your GUI Make your GUI application compatible with Android and iOS devices
If you feel this book is for you, get your copy today!
All of the code is organized into folders. For example, Chapter02.
The code will look like the following:
import sys
from PyQt5.QtWidgets import QDialog, QApplication
from demoCalendar import *
class MyForm(QDialog):
def __init__(self):
super().__init__()
self.ui = Ui_Dialog()
self.ui.setupUi(self)
self.ui.calendarWidget.selectionChanged.connect
(self.dispdate)
self.show()
def dispdate(self):
self.ui.dateEdit.setDate(self.ui.calendarWidget.
selectedDate())
if __name__=="__main__":
app = QApplication(sys.argv)
w = MyForm()
w.show()
sys.exit(app.exec_())
Following is what you need for this book: If you’re an intermediate Python programmer wishing to enhance your coding skills by writing powerful GUIs in Python using PyQT, this is the book for you.
With the following software and hardware list you can run all code files present in the book (Chapter 1-13).
Chapter | Software required | OS required |
---|---|---|
1-8,10-12 | Python 3.5.0 | Windows, Mac OS X, and Linux (Any) |
1-8, 10-12 | PyQt5 version 5.6 | Windows, Mac OS X, and Linux (Any) |
9 | SQLite 3 | Windows, Mac OS X, and Linux (Any) |
9 | DB Browser for SQLite | Windows, Mac OS X, and Linux (Any) |
13 | QPython | Windows, Mac OS X, and Linux (Any) |
13 | Cython | Windows, Mac OS X, and Linux (Any) |
13 | Kivy | Windows, Mac OS X, and Linux (Any) |
13 | Oracle VM VirtualBox | Windows, Mac OS X, and Linux (Any) |
13 | Kivy Buildozer VM | Windows, Mac OS X, and Linux (Any) |
13 | XCode and libraries | Windows, Mac OS X, and Linux (Any) |
We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.
Computer Vision with OpenCV 3 and Qt5: Build visually appealing, multithreaded, cross-platform computer vision applications Paperback – January 2, 2018 [Packt] [Amazon]
Qt 5 Projects: Develop cross-platform applications with modern UIs using the powerful Qt framework Paperback – February 23, 2018 [Packt] [Amazon]
BM Harwani is the founder and owner of Microchip Computer Education (MCE), based in Ajmer, India. He graduated with a BE in computer engineering from the University of Pune and also has a C level (masters diploma in computer technology) from DOEACC, Government of India. Having been involved in the teaching field for over 20 years, he has developed the art of explaining even the most complicated topics in a straightforward and easily understandable fashion. He is also a renowned speaker and the author of several books. To learn more, visit his blog, a site that helps programmers.
0
0
0
0
Click here if you have any feedback or suggestions.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。