https://bugs.kde.org/show_bug.cgi?id=427647
Bug ID: 427647 Summary: [4.4.0] An error message pops up when opening if I use Krita UI Redesign Plugin Product: krita Version: 4.4.0 Platform: Compiled Sources OS: All Status: REPORTED Severity: normal Priority: NOR Component: Scripting Assignee: krita-bugs-n...@kde.org Reporter: acc4commissi...@gmail.com Target Milestone: --- SUMMARY https://github.com/veryprofessionaldodo/Krita-UI-Redesign https://krita-artists.org/t/krita-ui-redesign/7239 * I didn't check if this happens with other plugins. * I can just close it and it doesn't seems affect using Krita, but I guess it's definitely not normal. It says : An eception occurred while running the script. AttributeError: 'bool' object has no attribute setEnabled' AttributeError Python 3.8.1: C:\Program Files\Krita (x64)\bin\krita.exe Wed Oct 14 02:24:14 2020 A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred. C:\Users\(Username)\AppData\Roaming\krita\pykrita\krita-redesign\redesign.py in createActions(self=<krita-redesign.redesign.Redesign object>, window=<PyKrita.krita.Window object>) 98 99 if self.usesNuToolbox: 100 self.ntTB = ntToolBox(window) 101 102 self.rebuildStyleSheet(window.qwindow()) self = <krita-redesign.redesign.Redesign object> self.ntTB = None global ntToolBox = <class 'krita-redesign.nuTools.nttoolbox.ntToolBox'> window = <PyKrita.krita.Window object> C:\Users\(Username)\AppData\Roaming\krita\pykrita\krita-redesign\nuTools\nttoolbox.py in __init__(self=<krita-redesign.nuTools.nttoolbox.ntToolBox object>, window=<PyKrita.krita.Window object>) 49 # Disable the related QDockWidget 50 self.dockerAction = self.findDockerAction(window, "Toolbox") 51 self.dockerAction.setEnabled(False) 52 53 self = <krita-redesign.nuTools.nttoolbox.ntToolBox object> self.dockerAction = False self.dockerAction.setEnabled undefined AttributeError: 'bool' object has no attribute 'setEnabled' __cause__ = None __class__ = <class 'AttributeError'> __context__ = None __delattr__ = <method-wrapper '__delattr__' of AttributeError object> __dict__ = {} __dir__ = <built-in method __dir__ of AttributeError object> __doc__ = 'Attribute not found.' __eq__ = <method-wrapper '__eq__' of AttributeError object> __format__ = <built-in method __format__ of AttributeError object> __ge__ = <method-wrapper '__ge__' of AttributeError object> __getattribute__ = <method-wrapper '__getattribute__' of AttributeError object> __gt__ = <method-wrapper '__gt__' of AttributeError object> __hash__ = <method-wrapper '__hash__' of AttributeError object> __init__ = <method-wrapper '__init__' of AttributeError object> __init_subclass__ = <built-in method __init_subclass__ of type object> __le__ = <method-wrapper '__le__' of AttributeError object> __lt__ = <method-wrapper '__lt__' of AttributeError object> __ne__ = <method-wrapper '__ne__' of AttributeError object> __new__ = <built-in method __new__ of type object> __reduce__ = <built-in method __reduce__ of AttributeError object> __reduce_ex__ = <built-in method __reduce_ex__ of AttributeError object> __repr__ = <method-wrapper '__repr__' of AttributeError object> __setattr__ = <method-wrapper '__setattr__' of AttributeError object> __setstate__ = <built-in method __setstate__ of AttributeError object> __sizeof__ = <built-in method __sizeof__ of AttributeError object> __str__ = <method-wrapper '__str__' of AttributeError object> __subclasshook__ = <built-in method __subclasshook__ of type object> __suppress_context__ = False __traceback__ = <traceback object> args = ("'bool' object has no attribute 'setEnabled'",) with_traceback = <built-in method with_traceback of AttributeError object> The above is a description of an error in a Python program. Here is the original traceback: Traceback (most recent call last): File "C:\Users\(Username)\AppData\Roaming\krita\pykrita\krita-redesign\redesign.py", line 100, in createActions self.ntTB = ntToolBox(window) File "C:\Users\(Username)\AppData\Roaming\krita\pykrita\krita-redesign\nuTools\nttoolbox.py", line 51, in __init__ self.dockerAction.setEnabled(False) AttributeError: 'bool' object has no attribute 'setEnabled' STEPS TO REPRODUCE 1. 2. 3. OBSERVED RESULT EXPECTED RESULT SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION -- You are receiving this mail because: You are watching all bug changes.