当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 2 Fork 3

xdicac/Qt5-Python-GUI-Programming-Cookbook
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Qt5 Python GUI Programming Cookbook

Qt5 Python GUI Programming Cookbook

This is the code repository for Qt5 Python GUI Programming Cookbook, published by Packt.

** Building responsive and powerful cross-platform applications with PyQt**

What is this book about?

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!

https://www.packtpub.com/

Instructions and Navigations

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).

Software and Hardware List

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.

Related products

  • 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]

  • [Packt] [Amazon]

  • [Packt] [Amazon]

Get to Know the Author

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

Other books by the authors

Suggestions and Feedback

Click here if you have any feedback or suggestions.

MIT License Copyright (c) 2018 Packt Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

克隆项目,用于学习 原项目地址:https://github.com/PacktPublishing/Qt5-Python-GUI-Programming-Cookbook.git 展开 收起
README
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/xdicac/Qt5-Python-GUI-Programming-Cookbook.git
git@gitee.com:xdicac/Qt5-Python-GUI-Programming-Cookbook.git
xdicac
Qt5-Python-GUI-Programming-Cookbook
Qt5-Python-GUI-Programming-Cookbook
master

搜索帮助