© Mike Driscoll 2018
Mike DriscollwxPython Recipeshttps://doi.org/10.1007/978-1-4842-3237-8_11

11. wxPython and the System Tray

Mike Driscoll
(1)
Ankeny, New York, USA
 

Recipe 11-1. Creating Taskbar Icons

Problem

Have you ever wondered how to create those little status icons in the Windows System Tray that usually appear on the lower right of your screen? The wxPython toolkit provides a pretty simple way to do just that and this chapter will walk you through the process .
You will need to find an icon file to use or create a Python image file via the img2py utility that was mentioned in Recipe 2-2 back in Chapter 2.

Solution

We will look at how to create the TaskBarIcon in both Classic wxPython and in the new wxPython 4 (Phoenix).

Creating the TaskBarIcon ...

Get wxPython Recipes: A Problem - Solution Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.