ID 610688 - From Katana 8 the function self.sender() return None due to the transition from PyQt to PySide

Follow

Problem summary
From Katana 8 the function self.sender() return None due to the transition from PyQt to PySide.
 
Customer reported version
Katana 8.0v5
 
Customer reported platform
Alma 9
 
Steps to reproduce
  1. Copy and paste the attached file PyMockAssetWidgetDelegate.py into the C:\Users\[name]\.katana\UIPlugins directory.
  2. Launch Katana.
  3. Create a LiveGroup node.
  4. Right-click on the newly created LiveGroup node and choose Load.
  5. Click on the File tab and open the attached Lighting.livegroup.
  6. Right click on the LiveGroup node and select Edit Contents.
  7. Right-click on the LiveGroup node and select Publish and Finish Editing Contents….
  8. In the upcoming windows, select Lighting.livegroup to overwrite it.
 
Expected behaviour
When calling self.sender(), information about the sender should be displayed.
 
Actual behaviour
When calling self.sender(), None is returned.
 
Workaround
A possible workaround is by following these steps:
 
  1. Open the PyMockAssetWidgetDelegate.py file in the C:\Users\[name]\.katana\UIPlugins directory.
  2. Add the following code in theconfigureAssetBrowserfunction:
        def configureAssetBrowser(self, browser):           ...        _logDebug("configureAssetBrowser hints: %s" % hints)        # NEW CODE ###########################################        is_save_mode = hints.get('saveMode', False)        print(f"Save Mode: {is_save_mode} | Delegate: {self}")        ######################################################        index = browser.addBrowserTab(PyMockBrowser, "PyMock")        inputPath = str(valuePolicy.getValue())        if inputPath.startswith("mock://") or not inputPath:            browser.setCurrentIndex(index)            browser.getBrowser(index).setLocation(inputPath)            browser.getBrowser(index).setContext(context)            # NEW CODE ###########################################            browser.getBrowser(index).setSaveMode(is_save_mode)            ######################################################
     
I have also attached the already modified file PyMockAssetWidgetDelegate_modified.py
 
Reproduced by support
 
This bug has been reproduced in:
Katana 8.0v3 - Windows 11
Katana 8.0v1 - Windows 11 - regression
 
 
Unable to reproduce bug in:
Katana 7.5v5 - Windows 11
Katana 6.5v1 - Windows 11
 
Earliest version tested
Katana 6.5v1 - Windows 11 - This issue doesn't appear in this version and has regressed.

    We're sorry to hear that

    Please tell us why