In [1]:
import qtpy
qtpy.QtCore.QMetaObject.invokeMethod(manager, 'quit')

In [ ]: