[Users] Python Plugin Information/Help
Holger Berndt
berndth at gmx.de
Fri Mar 20 10:51:31 CET 2020
Hallo Peter,
On Do, 19.03.2020 14:49, Peter Hanlon wrote:
>If I run it or any elaboration of it as a call from the auto/startup
>script, everything happens except File/Exit appears to be ignored.
Try putting the activation of the quit-action into an idle callback:
import gobject
def quitter():
action_group = clawsmail.get_mainwindow_action_group()
action = action_group.get_action("File/Exit")
action.activate()
return False
gobject.idle_add(quitter)
Holger
More information about the Users
mailing list