[Users] Help with Python compose_any script

Barry Warsaw barry at python.org
Fri Jul 11 00:21:52 CEST 2014


Hi Holger,

On Jul 10, 2014, at 09:27 PM, Holger Berndt wrote:

>#================================================================
>account_combo = clawsmail.compose_window.get_account_selection()
>for row in account_combo.get_model():
>    if "MyAccountName" in row[0]:
>        account_combo.set_active_iter(row.iter)
>        break
>#================================================================

Thanks for the suggestion, but it seems like

clawsmail.compose_window.get_account_selection()

always returns None when run from compose_any. :/

Cheers,
-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.claws-mail.org/pipermail/users/attachments/20140710/96bb3450/attachment.sig>


More information about the Users mailing list