~redache/jokosher/MusicXMLEditor

« back to all changes in this revision

Viewing changes to Jokosher/EventLaneViewer.py

  • Committer: David Williams
  • Date: 2010-07-03 09:55:44 UTC
  • Revision ID: redache@gmail.com-20100703095544-h728ufhl8dw7q8ea
Moved Score Instrument signal emit to a function and added to AddInstrument in Project.py to try and emit the  signal when an instrument is added based on the name of the instrument.

Show diffs side-by-side

added added

removed removed

Lines of Context:
372
372
        
373
373
        #_____________________________________________________________________
374
374
        
375
 
        def OnScoreAdded(self,instrument, event):
 
375
        def OnScoreAdded(self, instrument, event):
376
376
                """ 
377
377
                Callback for when a score is added.
378
378
        
380
380
                        instrument -- the instrument instance that sent the signal.
381
381
                        event -- the event instance that was added.
382
382
                """
383
 
                print event     
384
 
                x = 50
 
383
                print "score added"
 
384
                x = int(round((event.start - self.project.viewStart) * self.project.viewScale))
385
385
        
386
386
                child = ScoreEventViewer(self,self.project,event,30,self.mainview,self.small)
387
387