Instead of commenting out, you can check for existence of an application
instance.
def run():
app = QtGui.QApplication.instance()
createNew = app is None
if createNew:
app = QtGui.QApplication(sys.argv)
win = BasicDialog()
win.show()
if createNew:
On Tue, Sep 20, 2016 at 12:20 PM likage wrote:
> @Justin, thanks for getting back to me.
> So, I did a rewrite, however as long as I did not comment out both the
> 'app = QtGui.QApplication(sys.argv)' and 'app.exec_()', running the code
> would still cause my Maya to
Hi all, I have just started learning on pyqt4 model/view and I had thought
of trying out a very simple code to populate maya items into a QListView.
As I run the following code in an editor (without those maya
modules/lines), I am able to see QListView being called and populated with
the