<div>Running PyQt inside Maya 2010.</div><div><br></div><div>If I start a UI and haven't closed it, running the script again will completely freeze Maya and I get the message about "The event loop is already running".</div>
<div><br></div><div>I can prevent that by manually clicking the [x] button to close the UI before I rerun the script. But I'm wondering if there's any condition I can check if the UI is already running? And possibly force close it?</div>
<div><br></div>I've checked some other emails suggesting __name__ = __main__ method, but since my script will always be run inside Maya, the __name__ will never be equal to __main__ I suppose.<div><br></div><div>Thanks.</div>
<div><br></div><div>Best regard,</div><div>Panupat C.</div>