#Difference between PyQt4 and PySide in maya
#Import differences
from PyQt4 import QtCore, QtGui
from PySide import QtCore, QtGui
import sip
import shiboken
#Difference between sip and shiboken
mainWin = sip.wrapinstance(long(ptr), QtCore.QObject)
mainWin = shiboken.wrapInstance(long(ptr), QtGui.QWidget)
name = mui.MQtUtil.fullName(long(sip.unwrapinstance(win)))
name = mui.MQtUtil.fullName(long(shiboken.getCppPointer(win)[0]))
Hi
That's a good question. I can try and look into this tonight, unless someone else beats me to it :-)
Justin
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/1553ad8a-9512-4951-9738-2b478c83eb68%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
item.setBackgroundColor(QtGui.QColor(40,40,40))
item.setBackground(QtGui.QBrush(QtGui.QColor(40,40,40)))
Thanks Justin, I am looking forward to your response !
By the way I'm using Maya 2014
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/c375cc8d-5ef9-44b9-b664-2f975aab9617%40googlegroups.com.
if parent is not None:
self.setMargin(margin)
if parent is not None:
self.setContentsMargins(margin, margin, margin, margin)
2 * self.margin()to this
2 * self.getContentsMargins()[0]
Hi
How do you make a code block Justin?
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/864aa775-25da-476e-bad6-0fe4bd097d57%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
http://pyqt.sourceforge.net/Docs/PyQt4/new_style_signals_slots.html
https://wiki.qt.io/Differences_Between_PySide_and_PyQt
This specific case was more of it being a now deprecated function used back when it wasn't deprecated.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/94e6f160-356b-438a-aab0-7c760cd36b27%40googlegroups.com.