diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2013-01-15 13:14:59 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2013-01-18 19:59:59 (GMT) |
commit | dfad9cfeb95d3caa0db27b5581ced5cc98f13e34 (patch) | |
tree | eaa4bacfa2186a9df65f5260bf6717afc01c512f /Edit/HitInterface.py | |
parent | 814bfea231075043a97b778e09b2ffb510b4f768 (diff) |
Fixing the tune interface. Other bug fixes
Signed-off-by: Aaron Gordon <aaronsgordon@yahoo.com>
Diffstat (limited to 'Edit/HitInterface.py')
-rw-r--r-- | Edit/HitInterface.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Edit/HitInterface.py b/Edit/HitInterface.py index db8700f..b93f38a 100644 --- a/Edit/HitInterface.py +++ b/Edit/HitInterface.py @@ -103,7 +103,7 @@ class HitInterface( NoteInterface ): check += 1 while stop < check: stop += Config.TICKS_PER_BEAT emitter.selectNotesByBar( self.note.track, start, stop ) - elif event.type == gtk.gdk._3BUTTON_PRESS: # select track + elif event.type == Gdk.EventType._3BUTTON_PRESS: # select track self.potentialDeselect = False emitter.selectNotesByTrack( self.note.track ) else: @@ -183,8 +183,8 @@ class HitInterface( NoteInterface ): # Draw def draw( self, surface, startX, stopX ): - if stopX < self.imgX: return False # we don't need to draw and no one after us will draw - if startX > self.imgX + self.imgWidth: return True # we don't need to draw, but maybe a later note does + #if stopX < self.imgX: return False # we don't need to draw and no one after us will draw + #if startX > self.imgX + self.imgWidth: return True # we don't need to draw, but maybe a later note does cxt = cairo.Context(surface) cxt.set_source_rgb(*gdk_color_to_cairo(self.color)) cxt.rectangle(self.x+2, self.y+2, self.width-4, self.height-4) |