hey man
thanks
i have this program as test:
#!/usr/bin/pythonimport sysfrom PySide import QtCore, QtGui# from qtpy
import QtCore, QtGuiimport qtawesome as qta
app = QtGui.QApplication(sys.argv)
fa_icon = qta.icon('fa.camera')
fa_button = QtGui.QPushButton(fa_icon, 'Camera')
fa_button.setIconSize(QtCore.QSize(32, 32))
fa_button.show()
sys.exit(app.exec_())
interesting thins is that it does not work on my system but in clean VM it
works.
in bat file i set local packages, in local packages i have PySide and
qtawesome
do you think i have some packages on my environment variables that conflict
with local envs?
this is the error in my system:
Traceback (most recent call last):
File "E:\Madoodia\_GitHub\_ANR\Pipeline\_bin\..\pyside_samples\pyside_awesome_
simple.py", line 12, in <module>
fa_button = QtGui.QPushButton(fa_icon, 'Camera')
TypeError: 'PySide.QtGui.QPushButton' called with wrong argument types:
PySide.QtGui.QPushButton(QIcon, str)
Supported signatures:
PySide.QtGui.QPushButton(PySide.QtGui.QWidget = None)
PySide.QtGui.QPushButton(PySide.QtGui.QIcon, unicode, PySide.QtGui.QWidget = N
one)
PySide.QtGui.QPushButton(unicode, PySide.QtGui.QWidget = None)
On Thu, Feb 11, 2016 at 10:59 PM, Roy Nieterau <[email protected]>
wrote:
> I also removed that dependency and am just loading PySide. ;)
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/94590e27-5c90-46a8-9a7b-9cc49fe7aa8b%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
Bests,
madoodia
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/CADvbQwK4%3Drpop9-Bqax9NsmA2F8GPsgYwT1_xHN-xpAK1pZgTQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.