I can confirm this on Windows, or at least some odd behavior.
from PySide2 import QtWidgets
def on_pressed():
priknt("world")
button = QtWidgets.QPushButton("Hello")
button.pressed.connect(on_pressed)
button.show()
For me, when pressing the button, the window with the button in it stalls and doesn’t do or say anything. The GUI is still responsive and works fine.
When I run:
button.close()
The expected exception appears.
# Error: NameError: file <maya console> line 4: global name 'priknt' is not defined #
But the GUI remains.
The next time I call close(), the GUI closes, and all is well.
This is with a fresh copy of Maya 2017 on Windows 10, all settings default.
--
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_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAD%3DwhWM_m%3DrmaUaU%3D4gka1C4q0oH43cqROUgqqV4%2BVRJnB4Hpg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
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/CAD%3DwhWM_m%3DrmaUaU%3D4gka1C4q0oH43cqROUgqqV4%2BVRJnB4Hpg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
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/CAFRtmODypNPvuVxOjMFg1QFNtKsHgBubdz3d_WX9RhFn3SNb-Q%40mail.gmail.com.
Was this ever resolved? I'm getting the exact issue trying to import any for of pyside2 gui in maya 2017 macos..
On Sunday, October 2, 2016 at 2:56:54 AM UTC+13, Fredrik Averpil wrote:
> So, this definitively seems like some kind of bug to me. I don't want my application to stall indefinitely on end-users ever. I opened a bug report:
> https://bugreports.qt.io/browse/PYSIDE-364
>
>
>
> Please add your +1's, comments or ideas to the report. I think this is a quite severe issue.
>
>
> I really prefer "nothing happens when I click the button!" instead of "aaaw f@¢$, I lost all my work!".
>
>
> Regards,
> Fredrik
--
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/eb2e1b33-ed1a-43b6-86bb-3a33bac1ca82%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python_inside_maya/U26L1o8ncN4/unsubscribe.
To unsubscribe from this group and all its topics, 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/CAPGFgA0Jn9uezBU%2BbRzJqYWqYFdCHSf4qTmz94KgmoKe33YC8Q%40mail.gmail.com.
No. I’m getting an error when ever I try to launch any for of pyside2 guy in Maya.I can import pyside, qtcore, qtwidgets shiboken2 etc without any problem
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CACsi_521OLg9BcG13wYSMzkAA5%3D5rhfm8%3DAzYEQRpLE4vrjjDA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2KiOez2ZN-LeN032Zs3P%3D45M%3DRhj%2BgDxn%3D_m7UsagEVw%40mail.gmail.com.