Python GUI Programming Cookbook(PACKT,2015)


-
Python is a multi-domain, interpreted programming language. It is a widely used general-purpose, high-level programming language. It is often used as a scripting language because of its forgiving syntax and compatibility with a wide variety of different eco-systems. Its flexible syntax enables devel
Python Gul Programming Cookbook Copyright C 2015 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals However, Packt Publishing cannot guarantee the accuracy of this information First published: November 2015 Production reference: 1261115 Published by Packt Publishing Ltd Livery place 35 Livery Street Birmingham B3 2PB, UK SBN9781785283758 www.packtpub.com Credits Author Project Coordinator Burkhard A meier Shweta h. birwatkar Reviewe Proofreader Joy bindroo Safis Editing Peter bouda Joseph Rex Indexer Priya Sar Commissioning Editor Nadeem Bagan Graphics Kirk penha Acquisition Edito Vivek anantharaman Production coordinator Komal Ramchandani Content Development Editor Sumeet sawant Cover work Komal ramchand Technical Editor Pramod Kumavat Copy editor Janbal dharmara About the author Burkhard A. Meier has more than 15 years of professional experience working in the software industry as a software tester and developer, specializing in software test automation development, execution, and analysis. He has a very strong background in sQL relational database administration, the development of stored procedures, and debugging code While experienced in visual Studio. NET C#, Visual Test, TestComplete, and other testing languages(such as C/C++), the main focus of the author over the past two years has been developing test automation written in Python 3 to test the leading edge of FLIr oNE infrared cameras for iPhone and android smart phones as well as handheld tablets Being highly appreciative of art, beauty, and programming, the author developed Guls in C# and Python to streamline everyday test automation tasks, enabling these automated tests to run unattended for weeks, collecting very useful data to be analyzed and automatically plotted into graphs and e-mailed to upper management upon completion of nightly automated test runs His previous jobs include working as a senior test automation engineer and designer for InfoGenesis(now Agilysys), QAD, InTouch Health, and presently, FLIR Systems YoucangetintouchwithhimthroughhisLinkedinaccounthttps://www.linkedin.com pub/ burkhard-meier/57246/296 I would like to thank all truly great artists such as Leonardo da vinci, charles Baudelaire, Edgar Poe, and so many more for bringing the presence of beauty into our human lives. This book is about creating very beautiful GUls written in the Python programming language and it was inspired by these truly great artists I would like to thank all of the great people that made this book possible Without any of you, this book would only exist in my mind. I would like to especially thank all of my editors at Packt Publishing: Vivek, Arwa, Sumeet, Pramod, Nikhil and so many more. I would also like to thank all of the reviewers of the code of this book. without them this book would be harder to read and apply to real-world problems. Last but not least, I like to thank my wife, our daughter, and our parents for the emotional support they provided so successfully during the writing of this book i also like to give thanks to the creator of this very beautiful and powerful programming language that Python truly is. Thank you Guido About the reviewers Joy bindroo holds a bachelor's degree in computer science and engineering. He is currently pursuing his post-graduate studies in the field of information management. He is a creative person and enjoys working on Linux platform and other open source technologies. He enjoyswritingaboutPythonandsharinghisideasandskillsonhiswebsitehttp://www joybindroo. com/. He likes to sketch, write poems, listen to music, and have fun with his friends in his free time I would like to thank my family, teachers and friends for always encouraging and supporting me. I'm most thankful to lord shiva who enables me to achieve greater heights Peter Bouda works as a senior web developer for MAj Digital and is a specialist in full stack JavaScript applications based on Loop Back and Angular s. He develops python Guls for companies and research projects since 2003 and wrote a german book, PyQt und PySide-GUl-und Anwendungsentwicklung mit Python und Qt, on Python GUI development, which was published in 2012. Currently, he is getting crazy with embedded and open hardware platforms and is working on a modular game console based on open hardware Joseph Rex is a full stack developer with a background in computer security. He has worked on Python gUI products and some clI programs to experiment with information security. He came out of security to web development and developed a passion for rails and Java Script MVC frameworks after working on several projects using jQuery. He has been in the web industry for 3 years, building web applications and mobile apps. He has also written articles on security for Info sec Institute and has written some scripts to back them up. he has to his credit several personal experimental projects written in Python www.Packtpub.com Support files, eBooks, discount offers, and more Forsupportfilesanddownloadsrelatedtoyourbookpleasevisitwww.Packtpub.com Did you know that Packt offers e Book versions of every book published, with PDF and ePub filesavailableYoucanupgradetotheebooKversionatwww.Packtpub.comandasaprint book customer, you are entitled to a discount on the e Book copy. Get in touch with us at service@packtpub com for more details Atwww.packtpub.comyoucanalsoreadacollectionoffreetechnicalarticlessignupfor a range of free newsletters and receive exclusive discounts and offers on Packt books and e Book PACKTLIB https://www2.packtpub.com/books/subscription/packtlib Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can search access, and read packt's entire library of books Why Subscribe? Fully searchable across every book published by packt Copy and paste, print, and bookmark content k On demand and accessible via a web browser ree Access for Packt account holders IfyouhaveanaccountwithPacktatwww.paCktpub.comyoucanusethistoaccess PacktLib today and view 9 entirely free books Simply use your login credentials for immediate access Table of contents Preface Chapter 1: Creating the GUl Form and Adding widgets Introduction Creating our first Python GUI Preventing the GUI from being resized Adding a label to the GUI form Creating buttons and changlng thelr text property 1124679 Text box widgets Setting the focus to a widget and disabling widgets 11 Combo box widgets 12 Creating a check button with different initial states 14 Using radio button widgets 16 Using scrolled text widgets 18 Adding several widgets in a loop 20 Chapter 2: Layout Management 23 Introduction 23 Arranging several labels within a label frame widget 24 Using padding to add space around widgets 26 How widgets dynamically expand the GUl 28 Aligning the GUI widgets by embedding frames within frames 32 Creating menu bars 36 Creating tabbed widgets 41L Using the grid layout manager 46 Table of contents Chapter 3: Look and Feel customization 49 Introduction 49 Creating message boxes -information, warning, and error 50 How to create independent message boxes 53 How to create the title of a tkinter window form 56 Changing the icon of the main root window Using a spin box control 58 Relief, sunken, and raised appearance of widgets 61 Creating tooltips using Python 63 How to use the canvas widget 67 Chapter 4: Data and classes 69 Introduction 69 How to use stringvar0 69 How to get data from a widget 73 Using module-level global variables 75 How coding in classes can improve the gUI 79 Writing callback functions 85 Creating reusable GUI components 86 Chapter 5: Matplotlib Charts 91 Introduction 91 Creating beautiful charts using Matplotlib 92 Matplotllb -downloading modules using plp 94 Matplotlib- downloading modules with whl extensions 98 Creating our first chart 100 Placing labels on charts 102 How to give the chart a legend 106 Scaling charts 109 Adjusting the scale of charts dynamically 112 Chapter 6: Threads and Networking 117 Introductlon 117 How to create multiple threads 118 Starting a thread 121 Stopping a thread 125 How to use queues 128 Passing queues among different modules 133 Using dialog widgets to copy files to your network 136 Using TCP/IP to communicate via networks 145 Using URLopen to read data from websites 147 Table of contents Chapter 7: Storing Data in Our MySQL Database via Our GUI 153 Introduction 153 Connecting to a MysQL database from Python 154 Configuring the MySQL connection 157 Designing the Python GUI database 161 Using the SQL INSERT command 168 Using the SQL UPDATE command 172 Using the SQL DELETE command 177 Storing and retrieving data from our MysQL database 181 Chapter 8: Internationalization and Testing 87 Introduction 187 Displaying widget text in different languages 188 Changing the entire GUI language all at once 191 Localizing the GU 196 Preparing the GUI for internationalization 201 How to design a GUI in an agile fashion 204 Do we need to test the gui code? 208 Setting debug watches 212 Configuring different debug output levels 216 Creating self-testing code using Python's _main section 220 Creating robust GUls using unit tests 224 How to write unit tests using the eclipse Pydev IDE 229 Chapter 9: Extending our GUl with the wxPython Library 235 Introduction 235 How to install the wXPython library 236 How to create our gUl in WXPython 239 Quickly adding controls using wXPython 244 Trying to embed a main wxPython app in a main tkinter app 251 Trying to embed our tkinter GUI code into wxPython 253 How to use Python to control two different GUI frameworks 256 How to communicate between the two connected guls 260 Chapter 10: Creating Amazing 3D GUls with PyOpenGL and Py GLet 265 Introduction 265 PyOpen GL transforms our GUI 266 Our gul in 3D! 270 Using bitmaps to make our GUI pretty 275 Py GLet transforms our GUI more easily than Pyopen GL 279 Our GUI in amazing colors 283 Creating a slideshow using tkinter 286 II

-
2017-05-09
-
2017-02-25
-
2016-07-02
-
2016-03-10
15.15MB
Python GUI Programming Cookbook(2nd) 无水印pdf
2017-10-04Python GUI Programming Cookbook(2nd) 英文无水印pdf 第2版 pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转
14.26MB
Python GUI Programming Cookbook 2nd(AZW3+PDF)
2018-09-10Title: Python GUI Programming Cookbook 2nd Author(s): Burkhard A. Meier Publisher: Packt Publishing
Python GUI Programming Cookbook 2nd(AZW3+PDF)下载_course
2018-09-11Title: Python GUI Programming Cookbook 2nd Author(s): Burkhard A. Meier Publisher: Packt Publishing
8.58MB
Python.GUI.Programming.Cookbook.2nd.Edition.2017.5.pdf
2017-09-29Python is a multi-domain, interpreted programming language. It is a widely used general-purpose, hig
7.56MB
Python GUI Programming Cookbook 2nd
2018-02-01Python GUI Programming Cookbook by Burkhard A. Meier, Develop beautiful and powerful GUIs using the
8.41MB
Python GUI Programming Cookbook 2nd Edition(pdf格式含代码)
2017-10-05Python GUI Programming Cookbook Second Edition Copyright © 2017 Packt Publishing All rights reserved
9.53MB
Python GUI Programming Cookbook(2nd) azw3
2017-10-03Python GUI Programming Cookbook(2nd) 英文azw3 第2版 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csd
1.69MB
Python GUI Programming Cookbook 配套代码
2019-03-12Python GUI Programming Cookbook 配套代码, 基于tkinter库的GUI设计
7.87MB
Python GUI Programming Cookbook(2nd) epub
2017-10-03Python GUI Programming Cookbook(2nd) 英文epub 第2版 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csd
6.44MB
Qt5 Python GUI Programming Cookbook
2018-09-06Qt5 Python GUI Programming Cookbook ISBN 139781788831000 Over 60 recipes to help you design interact
8.58MB
Packt.Python.GUI.Programming.Cookbook.2nd.Edition.2017
2017-09-29Packt.Python.GUI.Programming.Cookbook.2nd.Edition.2017 Packt.Python.GUI.Programming.Cookbook.2nd.Edi
7.8MB
Python GUI Programming Cookbook.pdf 2015 0分
2015-12-14Paperback: 317 pages Publisher: Packt Publishing - ebooks Account (January 1, 2016) Language: Englis
4.65MB
QT5 Python GUI Programming Cookbook (2018)
2018-11-25This book is meant for intermediate to advanced programmers and developers who have some preliminary
9.15MB
Python GUI Programming Cookbook
2016-09-10Python GUI编程手册的英文版本
3.84MB
PYQT5 Python GUI Programming Cookbook
2019-01-03QT5 Python GUI Programming Cookbook 英文版编程资料 介绍pyqt5入门知识
8.77MB
Python.GUI.Programming.Cookbook
2017-06-05Python.GUI.Programming.Cookbook
9.30MB
Python_GUI_Programming_Cookbook 英文文字版
2019-02-02关于python gui的书很少很少,这可能是少数不多的内容全面的书了,英文版
9.0MB
Python+GUI+Programming+Cookbook
2017-10-08Python+GUI+Programming+Cookbook 英文版的高清python GUI开发,有基于python内部自带的tkinter GUI开发,详细地解说了tkinter基本控件,并有图
7.13MB
Qt5 Python GUI Programming Cookbook 无水印原版PDF
2018-07-31Qt5 Python GUI Programming Cookbook ISBN 139781788831000 Over 60 recipes to help you design interact
7.79MB
Python Tkinter GUI Programming Cookbook
2018-01-05python界面编程指导书,实例很多,值得学习 Python GUI Programming Cookbook(2nd) 英文无水印pdf 第2版 pdf所有页面使用FoxitReader和PDF-X
43.6MB
Python GUI Programming Cookbook(pdf+epub+mobi+code_files).zip
2018-05-22Python GUI Programming Cookbook Python GUI Programming Cookbook
8.41MB
Python GUI Programming Cookbook 2nd Edition
2017-10-20非常好的介绍tkiner的书。 内容非常丰富 Python GUI Programming Cookbook 2nd Edition
3.21MB
Programming in Python 3 2nd Edition.pdf
2011-08-09Python 3 is the best version of the language yet: It is more powerful, convenient, consistent, and e
-
博客
D. 划数 (多个数的和取模) (2021牛客寒假算法基础集训营6 )
D. 划数 (多个数的和取模) (2021牛客寒假算法基础集训营6 )
-
博客
小皮助手相关问题
小皮助手相关问题
-
博客
下列签名无效: EXPKEYSIG 6ED91CA3AC1160CD NVIDIA CORPORATION (Open Source Projects) <cudatools@nvidia.com>
下列签名无效: EXPKEYSIG 6ED91CA3AC1160CD NVIDIA CORPORATION (Open Source Projects) <cudatools@nvidia.com>
-
博客
韩文来历及与汉语的渊源
韩文来历及与汉语的渊源
-
博客
Wampserver安装,localhost没法打开,但phpadmin或127.1.1.0可以打开的解决方法
Wampserver安装,localhost没法打开,但phpadmin或127.1.1.0可以打开的解决方法
-
博客
C++ 类和对象(一)
C++ 类和对象(一)
-
下载
photography_demo-源码
photography_demo-源码
-
下载
5G芯片国产替代分析报告2021.pdf
5G芯片国产替代分析报告2021.pdf
-
学院
MySQL 四类管理日志(详解及高阶配置)
MySQL 四类管理日志(详解及高阶配置)
-
博客
狂神 MySql笔记完整版(同步B站视频)
狂神 MySql笔记完整版(同步B站视频)
-
博客
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
-
学院
MySQL NDB Cluster 负载均衡和高可用集群
MySQL NDB Cluster 负载均衡和高可用集群
-
下载
rubyex-源码
rubyex-源码
-
博客
PcHook 1.0版本有什么优点,为什么很多人还在用低版本?
PcHook 1.0版本有什么优点,为什么很多人还在用低版本?
-
博客
面向火炮火控系统的嵌入式软件测试平台
面向火炮火控系统的嵌入式软件测试平台
-
博客
VS2019 离线安装方法详解
VS2019 离线安装方法详解
-
博客
勤劳致富
勤劳致富
-
博客
web app开发利器 - iscroll4 解决方案
web app开发利器 - iscroll4 解决方案
-
学院
Oracle_11g_Linux到Linux_DataGuard部署
Oracle_11g_Linux到Linux_DataGuard部署
-
下载
DAW-源码
DAW-源码
-
下载
nomflix:通过建立电影发现来学习React和ES6-源码
nomflix:通过建立电影发现来学习React和ES6-源码
-
下载
面向自主Web服务的态势信息监视模型及其实现技术
面向自主Web服务的态势信息监视模型及其实现技术
-
下载
南理工考研818信号系统高质量例题必刷题
南理工考研818信号系统高质量例题必刷题
-
学院
MySQL 事务和锁
MySQL 事务和锁
-
学院
CCNA_CCNP 思科网络认证 网络层安全(通过 ACL 访问控制列
CCNA_CCNP 思科网络认证 网络层安全(通过 ACL 访问控制列
-
下载
Pokemon_capture_chance:在口袋妖怪中展示您的捕捉机会-源码
Pokemon_capture_chance:在口袋妖怪中展示您的捕捉机会-源码
-
学院
CCNA_CCNP 思科网络认证 三层交换机(VTP 简化 VLAN
CCNA_CCNP 思科网络认证 三层交换机(VTP 简化 VLAN
-
学院
C#Winform桌面开发编程上位机基础入门
C#Winform桌面开发编程上位机基础入门
-
学院
MySQL 触发器
MySQL 触发器
-
学院
MySQL 函数、用户自定义函数
MySQL 函数、用户自定义函数