[Users] Python Plugin Information/Help

Peter Hanlon hanlonpp at tpg.com.au
Sat Mar 21 02:57:26 CET 2020


Thanks again Holger,

I tested your idle callback, and it works fine. I will search the
documentation to try to understand it better.

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