When I put a UI element via
@ui.in_backgroundin the background, how can I react to the result in my normal (foreground) flow?
Say I have
dialogs.list_dialogand I want to do something with the result of the list in my
mainfunction. Can I somehow wait for the result ?
I have posted topics in the Pythonista subforum, but I do not seem to get email notifications when somebody replies.
How can I switch email notifications on? I have checekd on the Settings page "Send an email when replies are made to topics I am subscribed to", however this doesn't seem to do anything.
I'm using the
dialogsmodule for a share extension. When the extension runs it calls the line
ans = dialogs.list_dialog("Go to another app?", [k for k in apps_list])
to show a choice dialog. This did work for a while, but now I get the following error:
line 417, in list_dialog c.view.present('sheet') ValueError: View is already being presented or animation is in progress
Why's that and how can I avoid this?
ps: I remember I experimented with
appex.finish()(to close the share sheet before the dialog is displayed), but this did not work as I hoped for. So I have eliminated all calls to
appex.finish(), but now I get above error.