ID 532965 - The Workspace menu disappears when accessing its parent widget via Python

Follow

Problem summary
The Workspace menu disappears when accessing its parent widget via Python.
 
Customer reported version
Nuke 13.2v1
 
Customer reported platform
Windows 10
 
Steps to reproduce
 
1) Open Nuke.
 
2) Open the Script Editor and execute the following code:

from PySide2 import QtWidgets for w in QtWidgets.QApplication.topLevelWidgets():     w.parentWidget()
 
NOTE: For versions prior to Nuke 11.0v1, you will need to execute the following line of code instead:
from PySide import QtGuifor w in QtGui.QApplication.topLevelWidgets():    w.parentWidget()
 
Expected behaviour
The Workspace menu should not disappear when accessing its parent widget via Python.
 
Actual behaviour
The Workspace menu disappears when accessing its parent widget via Python.
 
Workaround
Unknown.
 
Reproduced by support
This bug has been reproduced in:
Nuke 14.0v2 - Windows 10 - Linux CentOS 7
Nuke 12.0v1 - Windows 10 - Linux CentOS 7
Nuke 10.0v1 - Windows 10 - Linux CentOS 7
 
Earliest version tested
Nuke 10.0v1
- This issue appears to be in all tested versions of the product
 

    We're sorry to hear that

    Please tell us why