Bug 427647

Summary: [4.4.0] An error message pops up when opening if I use Krita UI Redesign Plugin
Product: [Applications] krita Reporter: acc4commissions
Component: ScriptingAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: halla
Priority: NOR    
Version First Reported In: 4.4.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: All   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description acc4commissions 2020-10-13 17:39:01 UTC
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
Comment 1 acc4commissions 2020-10-13 17:44:03 UTC
Oh, It seems only happens if I set the Application Language to Korean(or other languages too, maybe?). It doesn't happen when I'm using English.
Comment 2 Halla Rempt 2020-10-13 17:45:19 UTC
I'm sorry... But this isn't something we can fix inside Krita. Please contact the author of the 3rdparty script about it?
Comment 3 acc4commissions 2020-10-13 18:02:29 UTC
Sure.