Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Python GUI Programming Cookbook
  • Table Of Contents Toc
  • Feedback & Rating feedback
Python GUI Programming Cookbook

Python GUI Programming Cookbook

By : Burkhard Meier
4.4 (11)
close
close
Python GUI Programming Cookbook

Python GUI Programming Cookbook

4.4 (11)
By: Burkhard Meier

Overview of this book

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 developers to write short scripts while at the same time, they can use object-oriented concepts to develop very large projects. 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 uses the simplest programming style, using the fewest lines of code to create a GUI in Python, and then advances to using object-oriented programming in later chapters. If you are new to object-oriented programming (OOP), this book will teach you how to take advantage of the OOP coding style in the context of creating GUIs written in Python. Throughout the book, you will develop an entire GUI application, building recipe upon recipe, connecting the GUI to a database. In the later chapters, you will explore additional Python GUI frameworks, using best practices. You will also learn how to use threading to ensure your GUI doesn’t go unresponsive. By the end of the book, you will be an expert in Python GUI programming to develop a common set of GUI applications.
Table of Contents (13 chapters)
close
close
12
Index

Creating beautiful charts using Matplotlib

This recipe introduces us to the Matplotlib Python module, which enables us to create visual charts using Python 3.

The following URL is a great place to start exploring the world of Matplotlib and will teach you how to create many charts that are not presented in this chapter:

http://matplotlib.org/users/screenshots.html

Getting ready

In order to use the Matplotlib Python module, we first have to install this module, as well as several other related Python modules such as numpy.

If you are running a version of Python less than 3.4.3, I would encourage you to upgrade your version of Python as we will be using the Python pip module throughout this chapter to install the required Python modules, and pip is installed with 3.4.3 and above.

Note

It is possible to install pip with earlier versions of Python 3 but the process is not very intuitive, so it is definitely better to upgrade to 3.4.3 or above.

How to do it...

The following picture is an example of...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Python GUI Programming Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon