Button.effectiveWinId

Button.effectiveWinId(self) int