And another PySide2 migration question:
I used to do this to check id an app is run in GUI or command line mode:
if QtWidgets.QApplication.type() == QtWidgets.QApplication.Type.GuiClient:
    ...

However QtWidgets.QApplication.type() doesn't exist in PySdie2 anymore.
What's the best way to achieve the same goal?

Thanks,
frank

--

ohufxLogo 50x50 <http://www.ohufx.com>    
*vfx compositing <http://ohufx.com/compositing.html> | *workflow customisation and consulting <http://ohufx.com/customising.html>* *
                *<http://ohufx.com/compositing.html>*
<http://www.nukepedia.com/nubridge>       
        

Your gateway to over 1,000 free tools... right inside of Nuke <http://www.nukepedia.com/nubridge>

_______________________________________________
PySide mailing list
PySide@qt-project.org
http://lists.qt-project.org/mailman/listinfo/pyside

Reply via email to