I'm building an app that uses the ui module to perform some calculations, display the results, and optionally export a PDF produced with reportlab. Everything works perfectly up to the point of displaying the newly created PDF. My export buttons action looks like this:
@ui.in_background
def export(sender):
...
...
file_path = create_report() #Creates PDF and returns path
console.quicklook(file_path)
The app freezes and I have to close pythonista to get back in. I tried using a console.alert, thinking I wasn't using ui.in_background correctly, and that worked fine. I can also verify that the path being returned is correct. Any ideas?