Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Python GUI Programming - A Complete Reference Guide

You're reading from   Python GUI Programming - A Complete Reference Guide Develop responsive and powerful GUI applications with PyQt and Tkinter

Arrow left icon
Product type Course
Published in Jun 2019
Publisher Packt
ISBN-13 9781838988470
Length 746 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
B. M. Harwani B. M. Harwani
Author Profile Icon B. M. Harwani
B. M. Harwani
Alan D. Moore Alan D. Moore
Author Profile Icon Alan D. Moore
Alan D. Moore
Arrow right icon
View More author details
Toc

Table of Contents (28) Chapters Close

Title Page
Copyright About Packt Contributors Preface 1. Introduction to Tkinter FREE CHAPTER 2. Designing GUI Applications with Tkinter 3. Creating Basic Forms with Tkinter and ttk Widgets 4. Reducing User Error with Validation and Automation 5. Planning for the Expansion of Our Application 6. Creating Menus with Menu and Tkinter Dialogs 7. Navigating Records with Treeview 8. Improving the Look with Styles and Themes 9. Creating Automated Tests with unittest 10. Improving Data Storage with SQL 11. Connecting to the Cloud 12. Visualizing Data Using the Canvas Widget 13. Creating a User Interface with Qt Components 14. Event Handling - Signals and Slots 15. Understanding OOP Concepts 16. Understanding Dialogs 17. Understanding Layouts 18. Networking and Managing Large Documents 19. Database Handling 20. Using Graphics 21. Implementing Animation 22. Using Google Maps 1. Other Books You May Enjoy

Creating a small browser

Let's now learn a technique to display a web page or the content of an HTML document. We will simply be making use of the Line Edit and Push Button widgets so that the user can enter the URL of the desired site, followed by clicking on the Push Button widget. On clicking the push button, that site will appear in a customized widget. Let's see how.

In this recipe, we will learn how to make a small browser. Because Qt Designer does not includes any widgets specifically, the focus of this recipe is to make you understand how a custom widget can be promoted into QWebEngineView, which in turn can be used for displaying a web page. 

The application will prompt for a URL and when the user clicks the Go button after entering the URL, the specified web page will open in the QWebEngineView object.

...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime