ENH: ctkPythonConsole: Offset cursor for function in user-defined classes
ENH: ctkPythonConsole: Offset cursor for function in user-defined classes

This commit is based on commit d4d8c7e originally associated with
topic python-autocomplete-parameter-detection from Christopher
Mullins.

It fixes issues reported in http://na-mic.org/Mantis/view.php?id=1227

Co-authored-by: Mayeul Chassagnard <55b6376f2069dc6d8d3182261d71fa750c7fd463@kitware.com>
Co-authored-by: Jean-Christophe Fillion-Robin <859d3fd8ca46de62a08fca56c64958e301f5352c@kitware.com>

SINTEFMedtek/CTK,jcfr/CTK,151706061/CTK,jcfr/CTK,151706061/CTK,SINTEFMedtek/CTK,CJGoch/CTK,CJGoch/CTK,151706061/CTK,jcfr/CTK,jcfr/CTK,jcfr/CTK,151706061/CTK,CJGoch/CTK,commontk/CTK,SINTEFMedtek/CTK,SINTEFMedtek/CTK,CJGoch/CTK,commontk/CTK,151706061/CTK,commontk/CTK,CJGoch/CTK,commontk/CTK,SINTEFMedtek/CTK