docs: def GetHandle(self):
          ''' returns an the identifier of the GUI widget.
          It must be an integer
          '''
          win_id = self.winId()  # this returns either an int or voitptr
  
          if "%s"%type(win_id) == "<type 'PyCObject'>":  # PySide
              ### with PySide, self.winId() does not return an integer
              if sys.platform == "win32":
                  ## Be careful, this hack is py27 specific
                  ## does not work with python31 or higher
                  ## since the PyCObject api was changed
                  import ctypes
                  ctypes.pythonapi.PyCObject_AsVoidPtr.restype = ctypes.c_void_p
                  ctypes.pythonapi.PyCObject_AsVoidPtr.argtypes = [
                      ctypes.py_object]
                  win_id = ctypes.pythonapi.PyCObject_AsVoidPtr(win_id)
          elif type(win_id) is not int:  #PyQt4 or 5
              ## below integer cast may be required because self.winId() can
              ## returns a sip.voitptr according to the PyQt version used
              ## as well as the python version
              win_id = int(win_id)
          return win_id