python qapplication example