I would be concerned that you have created a busy loop, by using a while loop and processEvents() without using WaitForMoreEvents. Maybe this is a cause of your issues, I dont know. Have you looked at using a QEventLoop? http://doc.qt.io/qt-4.8/qeventloop.html
You can create one and pass a reference to your event watchers. Any one of them call call myEvent.quit() to break the event loop. Then in the spot where you want to block, you call myEvent.exec_(). After the exec returns, you can do all your clean up. Justin On Sat, May 28, 2016 at 10:20 AM Ahmidou Lyazidi <[email protected]> wrote: > I forgot to add, the procedure: > -run the script > -do a few clicks in the viewport > -press any key to escape the click cession and resume the script > > Cheers > -A > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/69984688-54a8-42bd-ac92-1add31e3b48f%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/69984688-54a8-42bd-ac92-1add31e3b48f%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA00Xbt2FTCuMKnDosbz2v3nF9dWxqVcW08kNO7%3DJw46PQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
