https://bugs.kde.org/show_bug.cgi?id=424515
Bug ID: 424515 Summary: Notifier windowIsBeingCreated signal not wrapped correctly for Python Product: krita Version: 4.3.0 Platform: Other OS: Other Status: REPORTED Severity: normal Priority: NOR Component: Scripting Assignee: krita-bugs-n...@kde.org Reporter: adric.wor...@epicgames.com Target Milestone: --- SUMMARY The notifier class's "windowIsBeingCreated" method is wrapped as "windowCreated" in Notifier.sip. The net result is that Python scripts can't properly access or connect to the signal. EXAMPLE CODE: class MyExtension(krita.Extension): def __init__(self, parent): super(MyExtension, self).__init__(parent) krita.Krita.instance().notifier().windowCreated.connect(self._on_window_created) @QtCore.Slot("Window*") def _on_window_created(self, window): do_stuff() EXAMPLE STACKTRACE: Traceback (most recent call last): File "C:\Users\adric\AppData\Roaming\krita\pykrita\krita_unpipe\krita_unpipe.py", line 47, in __init__ notifier.windowCreated.connect(self._on_window_created) TypeError: connect() failed between windowCreated(Window*) and _on_window_created() EXPECTED RESULT Wrapped signals match their C++ naming, and can be connected to Python methods. SOFTWARE/OS VERSIONS Windows: 10.0.18363 Qt Version: 5.12.8 -- You are receiving this mail because: You are watching all bug changes.