Unfortunately, PyCharm has trouble understanding qualified class names (__vtkIOImagePython.vtkImageReader2), therefore it cannot identify its parent class.
If you replace this line by these lines then it works perfectly (documentation is found for parent class methods):
from .vtkImageReader2 import vtkImageReader2
I'm not sure if this is an error of PyCharm or in how VTK packages are organized. For example PyCharm generates skeleton for opencv correctly (see in StereoSGBM.py file), so maybe we could try to do something similar what is done in opencv. If we think that qualified class names should work then a bug report should be submitted to PyCharm.
From: vtkusers <[hidden email]> On Behalf Of Franks
Sent: Tuesday, January 8, 2019 5:44 AM
To: [hidden email] Subject: [vtkusers] how to get python documentation easier
I am using python to create my vtk project. But I found that there are less resources for python than c++. I want to read the documentation for python.
1. I use help() in python. It is somehow helpful. But it is inconvenient to see the documentation in the console.