We've got an often used little PyQt QDialog window that we use to set variables like Shot, Sequence, Shotgun Task/Context
that has its own .ui file. From inside a new custom RV Python plugin, I'm calling in a way that we use a lot and we like to use as a popup dialog in RV.
I guess I should ask first whether or not this is possible. I search the forum here and found a post or two that seem to imply it was.
First, I have the RV plugin code, which compiles and loads. At the top, I do a
import Settings_Dialog as SD
Later, I call it like so:
dialog = SD.Ui_Dialog()
settings = dialog.DoIt()
Before describing the file "Settings_Dialog.py",...let just say, that if I execute this,...RV will error out saying:
ERROR: 'Ui_Dialog' object has no attribute 'exec_'
But I know this it does,..as this syntax works in non-RV related work. Just for grins, I replaced "exec_()" with "show()"
and the subwindow did appear for a brief second, then disappears. The version of PyQt4 that I'm using is compatible with Python 2.6.6.
Is there some inherent limitation to doing something like this?
Btw: using RV 4.0.9 on Windows 7 64-bit