[Users] Python Plugin Information/Help
Peter Hanlon
hanlonpp at tpg.com.au
Sat Mar 21 01:30:08 CET 2020
Thanks Holger,
I will give it a go (as Australians say).
Thanks for a terrific plugin.
Hope you are all well. Some of the European statistics and ours aren't
encouraging. My mates suggest gargling red wine.
Peter
On Fri, 20 Mar 2020 10:51:31 +0100
Holger Berndt <berndth at gmx.de> wrote:
> 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
> _______________________________________________
> Users mailing list
> Users at lists.claws-mail.org
> https://lists.claws-mail.org/cgi-bin/mailman/listinfo/users
More information about the Users
mailing list