Hi there,
In my program I have a GUI with a button which, when pressed, is supposed to bring up a Quick Look of a particular file. I decorated the button function with @ui.in_background and yet when the button is pressed, no Quick Look view pops up. On the first press, nothing happens and on the second press Pythonista as a whole hangs and needs to be force-closed via the app switcher. An example is the following, where the pyui file just contains a single button whose action references the button function.
# coding: utf-8
import ui
import console
@ui.in_background
def button(sender):
console.quicklook('file.ics')
ui.load_view('Untitled 2').present('sheet')