AttributeError: 'NoneType' object has no attribute 'getBounds' in at line number 281
Traceback (most recent call last):
File "", line 281, in
File "", line 140, in __init__
AttributeError: 'NoneType' object has no attribute 'getBounds'

I already checked that the following lines returns "active shell found"
from org.eclipse.swt.widgets import Display