If you want to build a simple menu-based application that does not require a full GUI, the TaskBarIcon
class provides a way to build a TaskBar application that integrates with the operating system's window manager, such as TaskBar (Windows/Linux), Dock, or status area on OS X. This recipe will show you how to build a simple weather checker application using the TaskBarIcon
class in wxPython.
This recipe uses the OpenWeatherMap
API to get weather information. From October 2015, they require that you have an API key to use this service. Obtaining a key is free and simply requires signing up on their site. So, before starting this recipe, visit http://openweathermap.org/appid#get to learn how to get an API key.