PySide2: ui to py(from inside of maya and not black terminal or blue or any color)

Hello guys,

I hope everyone are at home and safe.

To my pyside series I dont know why i did not add this earlier, this wont look important but……….for a newbie or a beginner, persorn who is starting out with pyside2 in maya 2018 without any coding skills and just diving for the sake of fascination, kindly check the below code,

import sys, pprint
from pyside2uic import compileUi
pyfile = open("[path to output python file]\output.py", 'w')
compileUi("[path to input ui file]\input.ui", pyfile, False, 4,
False)
pyfile.close()

the above code will help you convert the qtDesigner .ui file to .py file, try it out.

That’s it for today guys.