Are you saying, based on your example, that it prints "A" and then crashes right before the return statement? That seems strange. Can you reproduce the crash against a standalone PyQt? This may seem weird but try collecting the selected indexes into a variable first, and then operating on that list. I have seen odd bugs related to PyQt memory management sometimes when using the temporary output of a call, in a nested statement.
sel = self.ui.fileList.selectedIndexes()
if len(sel) < 1:
...
Does that crash? Also what type of widget is "fileList"? A QListWidget? Sometimes calling protected methods on widgets can trigger the crash. You might need to see if you should be called a public method instead.
If you're on Windows, double check that their PyQt version was compiled for the right version of Maya and Visual Studio. Some things might work with the wrong version, but you may get unexpected crashes doing ordinary things if not; maybe this is what you're seeing?
--
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/CAFRtmOC4U8wuj4whbgR1%2BSnQCu4jRHEQ307iUTMa-Mbbc%2BNZ4g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
While the differences between PyQt and PySide aren't too big, it isn't always as easy as changing the imports. PySide uses the equivalent of PyQt w/ sip API v2. That means if your PyQt code was ever using QString or QVariant, that you will have to fix those spots. Also, the Signal and Property object references are a bit different.
--
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/b922c312-eecd-4884-b4cf-994996a35d18%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/1uQpnS-ynNQ/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/CAPGFgA1fx9MsWFv1xJftc02Lo4rjckskVbdq0Na%2Bziw0t42vUw%40mail.gmail.com.
This should give you an idea:
http://qt-project.org/wiki/Differences_Between_PySide_and_PyQt
Its not really too much different. In some cases for smaller stuff you may end up changing only import statements. In others you may need to change more.
--
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/5299ae0d-3ed6-47cf-b8cb-0b8f44a570f3%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.