Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
App freezes with ui.Button
-
Hi, I’ve noticed that calling dialogs.alert() or dialogs.list_dialog() inside a function which is associated with a ui.Button, makes the app to freeze when the button is pressed. It occurs both in version 3.3 and in the new beta. I assume that it is related to newer versions of iOS, since it didn’t happen with iOS 13.
import ui import dialogs def myFunction(sender): dialogs.alert("Alert", "Do you want to continue?", "OK") print("Finished") b = ui.Button() b.title = "Press me" b.action = myFunction b.present()
-
@xgm try
import ui import dialogs @ui.in_background def myFunction(sender): dialogs.alert("Alert", "Do you want to continue?", "OK") print("Finished") b = ui.Button() b.title = "Press me" b.action = myFunction b.present()
-
@cvp Thanks, this works perfectly!
-
-
@cvp I understand. I’m new in the forum and didn’t realize about it.
-
@xgm no problem, it was just to say. It is often not easy to search in the forum
-
-
@cvp Thanks!