I have:
from PySide import QtGui, QtUiTools
What is the difference between:
ui_file = QtCore.QFile('my_ui.ui')
ui_file.open(QtCore.QFile.ReadOnly)
my_ui = QtUiTools.QUiLoader().load(ui_file)
ui_file.close()
and:
self.ui = QtUiTools.QUiLoader().load('my_ui.ui')
?
I'm asking because the latter seems a lot simpler, and it seems to work just as well as the first chunk of code. I googled up the first chunk of code and by mistake didn't implement it right, but the .ui file loaded just fine anyways. This made me a little confused.