pyotherside icon indicating copy to clipboard operation
pyotherside copied to clipboard

PyOtherSide does not allow closing to be interrupted.

Open andyfozzy opened this issue 8 years ago • 0 comments

I am currently working on an application with sub-windows for viewing information about individual parts of a whole system. both the main application and the sub-windows use pyotherside. I have discovered that if I open a sub-window and close it again before all python modules in the Python element have been imported, it causes issues when the sub-window is opened next time. The problem is that the python processes from the original window cannot be stopped on closing and continue running. Depending on the exact set-up of the machine this can stop updates coming to the sub-window through python, or even a crash the whole application.

I have noticed this only in Windows, though I suspect this is just because the Windows version takes longer to import modules.

I would appreciate being able to stop python doing any of its atexit processes until I allow it to procede. This can be done on the QML side by setting close.accepted to false, but this seems to have no effect on pyotherside.

andyfozzy avatar May 01 '17 07:05 andyfozzy