public readonly property isProtected as Boolean:
True when the method is protected.
method = type(widget).getMethod("paint") print(method.isProtected)