Hey Everybody,
I’ve been implementing a bunch of tools using PySide in 2014 and the fact that it’s distributed with Maya by default is great, especially when dealing with multiple 32/64 bit and on multiple OS’s. So anyway, long story short I’ve been running into this error where if I launch the UI a couple times, after a certain random number of launches, it will complain that QMainWindow (actually my subclass of it) doesnt have an attribute winEvent(). It seems to get called in .show(). I also used .setVisible() instead and still got the error. I read somewhere that nativeEvent() is now the correct call and winEvent() is not longer valid but it seems to be something Maya is doing internally, so I have no way of getting to this. I’m using Nathan Horne’s method of loading the .UI file with sip, but I also generated a .py class from the .UI to see if it would help and it didn’t seem to.
Anyone else had this problem or know of a workaround? Essentially once this happens you just have to restart Maya which is super annoying
Thanks in advance!
Judd