If manager number *num* exists, make it the active one and return it; otherwise return *None*.
(cls, num)
| 32 | |
| 33 | @classmethod |
| 34 | def get_fig_manager(cls, num): |
| 35 | """ |
| 36 | If manager number *num* exists, make it the active one and return it; |
| 37 | otherwise return *None*. |
| 38 | """ |
| 39 | manager = cls.figs.get(num, None) |
| 40 | if manager is not None: |
| 41 | cls.set_active(manager) |
| 42 | return manager |
| 43 | |
| 44 | @classmethod |
| 45 | def destroy(cls, num): |