Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tuning_toolbar.py
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2012-06-25 19:44:00 (GMT)
committer Walter Bender <walter.bender@gmail.com>2012-06-25 19:44:00 (GMT)
commit50ad403a12f827d05d3dfba623fae6a851ee5af5 (patch)
treedf56a7f477d6cb140653a150aa51f47c71f35974 /tuning_toolbar.py
parent0e217e28434dd6cb8c76b2ebb59d0f7a71d8366b (diff)
pep8 cleanup
Diffstat (limited to 'tuning_toolbar.py')
-rw-r--r--tuning_toolbar.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tuning_toolbar.py b/tuning_toolbar.py
index b0b99f4..4c67fe9 100644
--- a/tuning_toolbar.py
+++ b/tuning_toolbar.py
@@ -17,7 +17,7 @@ import gobject
import subprocess
from gettext import gettext as _
-from config import ICONS_DIR, CAPTURE_GAIN, MIC_BOOST, XO1, XO15, XO175, XO30, \
+from config import ICONS_DIR, CAPTURE_GAIN, MIC_BOOST, XO1, XO15, XO175, XO30,\
INSTRUMENT_DICT
from sugar.graphics.toolbutton import ToolButton
@@ -82,7 +82,7 @@ class TuningToolbar(gtk.Toolbar):
self._notes_combo.append_item(
n, note_octave(i, octave), None)
n += 1
- self._notes_combo.set_active(48) # A4
+ self._notes_combo.set_active(48) # A4
self._notes_changed_id = self._notes_combo.connect(
'changed', self.update_note)
if hasattr(self._notes_combo, 'set_tooltip_text'):
@@ -347,7 +347,7 @@ class InstrumentToolbar(gtk.Toolbar):
self._notes_combo.append_item(
n, note_octave(i, octave), None)
n += 1
- self._notes_combo.set_active(48) # A4
+ self._notes_combo.set_active(48) # A4
if hasattr(self._notes_combo, 'set_tooltip_text'):
self._notes_combo.set_tooltip_text(_('Notes'))
self._notes_tool = ToolComboBox(self._notes_combo)
@@ -430,4 +430,4 @@ def index_to_octave(i):
def index_to_note(i):
- return (i-3) % 12 # -3 because we start with A
+ return (i - 3) % 12 # -3 because we start with A