September 2016
Intermediate to advanced
775 pages
18h 22m
English
In this chapter, we covered the Command pattern. Using this design pattern, we can encapsulate an operation such as copy/paste as an object. This offers many benefits, as follows:
Executing a command is like ordering at a restaurant. Each customer order is an independent command that enters many stages and is finally executed by the cook.
Many GUI frameworks, including PyQt use the Command pattern to model actions that can be triggered by one or more events and can be customized. However, Command is not limited ...