My Account Log in

3 options

Qt5 Python GUI programming cookbook : building responsive and powerful cross-platform applications with PyQt / B. M. Harwani.

EBSCOhost Academic eBook Collection (North America) Available online

View online

Ebook Central Academic Complete Available online

View online

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

View online
Format:
Book
Author/Creator:
Harwani, B. M., author.
Language:
English
Subjects (All):
Python (Computer program language).
Graphical user interfaces (Computer systems)--Programming.
Graphical user interfaces (Computer systems).
Application software--Development.
Application software.
Physical Description:
1 online resource (462 pages)
Edition:
1st edition
Other Title:
Qt five Python graphical user interface programming cookbook
Place of Publication:
Birmingham : Packt, 2018.
System Details:
text file
Summary:
Over 60 recipes to help you design interactive, smart, and cross-platform GUI applications Key Features Get succinct QT solutions to pressing GUI programming problems in Python Learn how to effectively implement reactive programming Build customized applications that are robust and reliable Book Description 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. As you expand your GUI using more widgets, you will cover networks, databases, and graphical libraries that greatly enhance its functionality. Next, the book guides you in using Qt Designer to design user interfaces and implementing and testing dialogs, events, the clipboard, and drag and drop functionality to customize your GUI. You will learn a variety of topics, such as look and feel customization, GUI animation, graphics rendering, implementing Google Maps, and more. Lastly, the book takes you through how Qt5 can help you to create cross-platform apps that are compatible with Android and iOS. You will be able to develop functional and appealing software using PyQt through interesting and fun recipes that will expand your knowledge of GUIs What you will learn 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 Who this book is for 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. Downloading the example code for this book You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.
Contents:
Cover
Title Page
Copyright and Credits
Dedication
Packt Upsell
Contributors
Table of Contents
Preface
Chapter 1: Creating a User Interface with Qt Components
Introduction
PyQt
Ways of creating GUI applications
Displaying a welcome message
Understanding the Label widget
Methods
Understanding the Line Edit widget
Understanding the Push Button widget
How to do it...
How it works...
Using the Radio Button widget
Understanding Radio Button
Signal description
Grouping radio buttons
Getting ready
Displaying options in the form of checkboxes
Method application
Displaying two groups of checkboxes
Chapter 2: Event Handling - Signals and Slots
Using Signal/Slot Editor
Copying and pasting text from one Line Edit widget to another
Converting data types and making a small calculator
Using the Spin Box widget
Using scrollbars and sliders
Using List Widget
Selecting multiple list items from one List Widget and displaying them in another
Adding items into List Widget
Performing operations in List Widget
Methods provided by the QListWidgetItem class
How to do it....
Using the Combo Box widget
How to do it….
How it works...
Using the Font Combo Box widget
How to do it…
Using the Progress Bar widget
Chapter 3: Working with Date and Time
Displaying LCD digits
Using Timers
Using the QTime class
Displaying system clock time in LCD-like digits
Displaying the date selected by the user from Calendar Widget
Displaying a calendar
Using the QDate class
Using the Date Edit widget
Creating a hotel reservation form
Displaying tabular data using Table Widget
Table Widget
The QTableWidgetItem class
Chapter 4: Understanding OOP Concepts
Object-oriented programming
Creating a class
Using the built-in class attributes
Accessing class variables in instance methods
Instances
Using classes in GUI
Making the application more elaborate
Inheritance
Types of inheritance
Using single inheritance
Using multilevel inheritance
Using multiple inheritance
Chapter 5: Understanding Dialogs
The input dialog box
Using the input dialog
Using the color dialog
Using the font dialog
Using the file dialog
Chapter 6: Understanding Layouts
Understanding layouts
Spacers
Using Horizontal Layout
How to do it.
Using Vertical Layout
Using Grid Layout
Using Form Layout
Chapter 7: Networking and Managing Large Documents
Creating a small browser
Creating a server-side application
Establishing client-server communication
Creating a dockable and floatable sign-in form
Multiple Document Interface
Displaying information in sections using Tab Widget
Creating a custom menu bar
Chapter 8: Doing Asynchronous Programming in Python
Multithreading
Asynchronous programming
Updating progress bar using thread
Updating two progress bars using two threads
Updating progress bars using threads bound with a locking mechanism
Updating progress bars simultaneously using asynchronous operations
Managing resources using context manager
Context manager
Chapter 9: Database Handling
Creating the cursor object
Creating a database
How it works…
Creating a database table
Inserting rows in the specified database table
Displaying rows in the specified database table
How it works….
Navigating through the rows of the specified database table
Searching a database table for specific information
Creating a signin form - applying an authentication procedure
Updating a database table - changing a user's password
Deleting a row from a database table
Chapter 10: Using Graphics
Displaying mouse coordinates
Displaying coordinates where the mouse button is clicked and released
Displaying a point where the mouse button is clicked
Drawing a line between two mouse clicks
Drawing lines of different types
Drawing a circle of a desired size
Drawing a rectangle between two mouse clicks
Drawing text in a desired font and size
Creating a toolbar that shows different graphics tools
Plotting a line using Matplotlib
Plotting a bar using Matplotlib
Chapter 11: Implementing Animation
Implementing animation
Displaying a 2D graphical image
Making a ball move down on the click of a button
Making a bouncing ball
Making a ball animate as per the specified curve
Chapter 12: Using Google Maps.
Introduction
Finding out details of a location or a landmark
Getting complete information from latitude and longitude values
Finding out the distance between two locations
Displaying location on Google Maps
Chapter 13: Running Python Scripts on Android and iOS
Copying scripts from PC to Android devices
How to do it
Prompting for a username and displaying a welcome message
Understanding different buttons in a dialog box
Performing single selection from a list
Performing multiple selections from a list
Displaying a Date Picker dialog
Capturing images using a camera
Making an Android device speak a text input
Creating a cross-platform Python script using Kivy
Getting started
Packaging a Python Script into the Android APK using Buildozer
How it works
Packaging Python script for iOS
Other Books You May Enjoy
Index.
Notes:
Description based on print version record.
OCLC:
1049177168

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