My Account Log in

3 options

Python GUI programming cookbook : develop beautiful and powerful GUIs using the Python programming language / Burkhard A. Meier.

EBSCOhost Academic eBook Collection (North America) Available online

View online

Ebook Central College Complete Available online

View online

O'Reilly Online Learning: Academic/Public Library Edition Available online

View online
Format:
Book
Author/Creator:
Meier, Burkhard A., author.
Language:
English
Subjects (All):
Graphical user interfaces (Computer systems)--Programming.
Graphical user interfaces (Computer systems).
Python (Computer program language).
Object-oriented programming (Computer science).
Physical Description:
1 online resource (1 volume) : illustrations
Edition:
Second edition.
Other Title:
Python graphical user interface programming cookbook
Place of Publication:
Birmingham, UK : Packt Publishing, 2017.
System Details:
text file
Biography/History:
Meier Burkhard: Burkhard Meier is a professional software test automation designer, developer, and analyst. He has more than 17 years' professional experience working for several software companies in California, USA. He is the author of Python GUI Programming Cookbook, First and Second Edition. This book is also available as a Packt video course. He is also the author of the Python Projects Packt video course. In his professional career, he developed advanced in-house testing frameworks written in Python 3. He also developed advanced test automation GUIs in Python, which highly increased the productivity of the software development testing team. When not dreaming in Python code, he reads programming books about design, likes to go for long walks, and reads classical poetry.
Summary:
Master over 80 object-oriented recipes to create amazing GUIs in Python and revolutionize your applications today About This Book Use object-oriented programming to develop amazing GUIs in Python Create a working GUI project as a central resource for developing your Python GUIs Easy-to-follow recipes to help you develop code using the latest released version of Python Who This Book Is For This book is for intermediate Python programmers who wish to enhance their Python skills by writing powerful GUIs in Python. As Python is such a great and easy to learn language, this book is also ideal for any developer with experience of other languages and enthusiasm to expand their horizon. What You Will Learn Create the GUI Form and add widgets Arrange the widgets using layout managers Use object-oriented programming to create GUIs Create Matplotlib charts Use threads and talking to networks Talk to a MySQL database via the GUI Perform unit-testing and internationalizing the GUI Extend the GUI with third-party graphical libraries Get to know the best practices to create GUIs In Detail 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. Python GUI Programming Cookbook follows a task-based approach to help you create beautiful and very effective GUIs with the least amount of code necessary. This book will guide you through the very basics of creating a fully functional GUI in Python with only a few lines of code. Each and every recipe adds more widgets to the GUIs we are creating. While the cookbook recipes all stand on their own, there is a common theme running through all of them. As our GUIs keep expanding, using more and more widgets, we start to talk to networks, databases, and graphical libraries that greatly enhance our GUI’s functionality. This book is what you need to expand your knowledge on the subject of GUIs, and make sure you’re not missing out in the long run. Style and approach This programming cookbook consists of standalone recipes, and this approach makes it unique.. While each recipe explains a certain concept, throughout the book you’ll build a more and more advanced GUI, recipe after recipe. In some of the advanced topics, we simply create a new GUI in order to explore these topics in depth. Downloading the example code for...
Contents:
Cover
Copyright
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Table of Contents
Preface
Chapter 1: Creating the GUI Form and Adding Widgets
Introduction
Creating our first Python GUI
Getting ready
How to do it…
How it works…
There's more…
Preventing the GUI from being resized
Adding a label to the GUI form
Creating buttons and changing their text property
Text box widgets
Setting the focus to a widget and disabling widgets
Combo box widgets
Creating a check button with different initial states
Using radio button widgets
Using scrolled text widgets
Adding several widgets in a loop
Chapter 2: Layout Management
Arranging several labels within a label frame widget
Using padding to add space around widgets
How widgets dynamically expand the GUI
Aligning the GUI widgets by embedding frames within frames
Creating menu bars
How it works….
There's more…
Creating tabbed widgets
Using the grid layout manager
Getting ready…
Chapter 3: Look and Feel Customization
Creating message boxes - information, warning, and error
How to create independent message boxes
How to create the title of a tkinter window form
Changing the icon of the main root window
Using a spin box control
How to do it...
Relief, sunken and raised appearance of widgets
Creating tooltips using Python
Adding a progressbar to the GUI
How to use the canvas widget
Chapter 4: Data and Classes
How to use StringVar()
How to get data from a widget
Using module-level global variables
How coding in classes can improve the GUI
Writing callback functions
Creating reusable GUI components
Chapter 5: Matplotlib Charts
Creating beautiful charts using Matplotlib
Installing Matplotlib using pip with whl extension
How to do it….
How it works…
Creating our first chart
Placing labels on charts
How to give the chart a legend
Scaling charts
Adjusting the scale of charts dynamically
Chapter 6: Threads and Networking
How to create multiple threads
Starting a thread
Stopping a thread
How to use queues
Passing queues among different modules
Using dialog widgets to copy files to your network
Using TCP/IP to communicate via networks
Using urlopen to read data from websites
Chapter 7: Storing Data in our MySQL Database via our GUI
Installing and connecting to a MySQL server from Python
Configuring the MySQL database connection
Designing the Python GUI database
Using the SQL INSERT command
Using the SQL UPDATE command
Using the SQL DELETE command
Storing and retrieving data from our MySQL database
Using the MySQL workbench
Chapter 8: Internationalization and Testing
Displaying widget text in different languages
Changing the entire GUI language, all at once
Localizing the GUI
Preparing the GUI for internationalization
How to design a GUI in an agile fashion
Do we need to test the GUI code?
Setting debug watches
Configuring different debug output levels
Creating self-testing code using Python's __main__ section
Creating robust GUIs using unit tests
How to write unit tests using the Eclipse PyDev IDE
Chapter 9: Extending Our GUI with the wxPython Library
Installing the wxPython library
Creating our GUI in wxPython
Quickly adding controls using wxPython
Trying to embed a main wxPython app in a main tkinter app
Trying to embed our tkinter GUI code into wxPython
Using Python to control two different GUI frameworks
Communicating between the two connected GUIs
Chapter 10: Creating Amazing 3D GUIs with PyOpenGL and PyGLet
PyOpenGL transforms our GUI
Our GUI in 3D!
Using bitmaps to make our GUI pretty
PyGLet transforms our GUI easier than PyOpenGL
Our GUI in amazing colors
OpenGL animation
Creating a slide show using tkinter
Chapter 11: Best Practices
Avoiding spaghetti code
Using __init__ to connect modules
Mixing fall-down and OOP coding
Using a code naming convention
When not to use OOP
How to use design patterns successfully
Avoiding complexity
GUI design using multiple notebooks
Index.
Notes:
Previous edition published: 2015.
Description based on online resource; title from title page (Safari, viewed June 23, 2017).
ISBN:
9781787129023
1787129020
OCLC:
991530195

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

Find

Home Release notes

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Find catalog Using Articles+ Using your account