4. The Publish–Subscribe Pattern
Recipe 4-1. An Intro to Pubsub
Problem
The Publish-Subscribe (PubSub) pattern
is a common design pattern in computer science that is used to communicate with different parts of your application. The basic idea for this is that you will create one or more listeners that are known as subscribers. The subscribers
are listening for a specific message type that you can send via your publisher.
The wxPython GUI toolkit includes an implementation of the Publish-Subscribe pattern in wx.lib.pubsub.
Solution
I always find it helpful to actually write some code and see how all these various pieces ...