Repository: psychopy/psychopy

Issue:
Coder: View, {Whitespace, Indentation guides} do nothing on Mac
PsychoPy 1.8.5
OS X: 10.12.6

Despite having these unchecked - or checking and unchecking them - the guides still show up and distract me.  See below

<img width="402" alt="screen shot 2017-07-28 at 12 04 12 pm" src="https://user-images.githubusercontent.com/9575070/28732568-224f045a-738d-11e7-8340-6bd80e0ce901.png">



Discussion:

Resolving patch:
diff --git a/psychopy/app/builder/components/noise/__init__.py b/psychopy/app/builder/components/noise/__init__.py
--- a/psychopy/app/builder/components/noise/__init__.py
+++ b/psychopy/app/builder/components/noise/__init__.py
@@ -272,7 +272,6 @@ def writeInitCode(self, buff):
             self._forceUpdateFrames = True
         elif inits['noiseNewSample'].val in ['Seconds']:
             self._forceUpdateSeconds = True
-        print 'repeat', self._forceUpdateRepeat, 'frames', self._forceUpdateFrames, 'seconds' , self._forceUpdateSeconds
         #self._when=float(inits['Z_when'].val)
         #print self._when
 
diff --git a/psychopy/app/coder/coder.py b/psychopy/app/coder/coder.py
--- a/psychopy/app/coder/coder.py
+++ b/psychopy/app/coder/coder.py
@@ -1670,7 +1670,7 @@ def makeMenus(self):
                                    _translate("&Indentation guides\t%s") % key,
                                    hint)
         self.indentGuideChk.Check(self.appData['showIndentGuides'])
-        wx.EVT_MENU(self, item.GetId(),
+        wx.EVT_MENU(self, self.indentGuideChk.GetId(),
                     self.setShowIndentGuides)
         # whitespace
         key = keyCodes['toggleWhitespace']
@@ -1679,7 +1679,7 @@ def makeMenus(self):
                                    _translate("&Whitespace\t%s") % key,
                                    hint)
         self.showWhitespaceChk.Check(self.appData['showWhitespace'])
-        wx.EVT_MENU(self, item.GetId(), self.setShowWhitespace)
+        wx.EVT_MENU(self, self.showWhitespaceChk.GetId(), self.setShowWhitespace)
         # EOL markers
         key = keyCodes['toggleEOLs']
         hint = _translate("Show End Of Line markers in the code")
@@ -2299,7 +2299,6 @@ def fileSave(self, event=None, filename=None, doc=None):
                 dlg = dialogs.MessageDialog(self, message=msg % basefile,
                                             type='Warning')
                 if dlg.ShowModal() != wx.ID_YES:
-                    print("'Save' was canceled.")
                     failToSave = True
                 try:
                     dlg.destroy()
diff --git a/psychopy/visual/noise.py b/psychopy/visual/noise.py
--- a/psychopy/visual/noise.py
+++ b/psychopy/visual/noise.py
@@ -227,7 +227,7 @@ def __init__(self,
         self.buildNoise()
         self._needBuild = False
         #self._needNoiseUpdate = False
-        #print self.noiseElementSize
+        #print(self.noiseElementSize)
 
     @attributeSetter
     def noiseType(self, value):
@@ -372,7 +372,6 @@ def setNoiseType(self, value, log=None):
         self._set('noiseType', value, log=log)
         
     def setNoiseImage(self, value, log=None):
-        print value
         self._set('noiseImage', value, log=log)
         
     def setNoiseClip(self, value, log=None):
@@ -411,7 +410,6 @@ def draw(self, win=None):
         stimulus to appear on that frame and then update the screen
         again.
         """
-        #print 'draw noise'
         if win is None:
             win = self.win
         saveBlendMode=win.blendMode


Test patch: