print(Krita.version()) from krita import Krita print(dir(Krita.version)) print(Krita.version())
the result is this:
==== Warning: Script not saved! ==== 4.2.2 ['__call__', '__class__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__name__', '__ne__', '__new__', '__qualname__', '__reduce__', '__reduce_ex__', '__repr__', '__self__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__text_signature__'] ********************** TypeError: version(self): first argument of unbound method must have type 'Krita' In file: <string> In function: <module> at line: 4. Line with error: **********************