Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(7)  |  Call(5)  |  Derive(0)  |  Import(2)

src/d/r/DrumBurp-HEAD/src/GUI/QScore.py   DrumBurp(Download)
from QEditKitDialog import QEditKitDialog
from Data import DBErrors
from Data.Score import ScoreFactory
from Data.NotePosition import NotePosition
from DBCommands import (MetaDataCommand, ScoreWidthCommand,
from DBFSM import Waiting
from DBFSMEvents import Escape
_SCORE_FACTORY = ScoreFactory()
 
class _HeadShortcut(object):
    def loadScore(self, filename, quiet = False):
        try:
            newScore = _SCORE_FACTORY(filename = filename)
        except DBErrors.DbReadError, exc:
            if not quiet:
            else:
                counter = self.defaultCount
        newScore = _SCORE_FACTORY(numMeasures = numMeasures,
                                  counter = counter,
                                  kit = kit)

src/d/r/DrumBurp-HEAD/src/test/testScore.py   DrumBurp(Download)
import unittest
from cStringIO import StringIO
from Data.Score import Score, InconsistentRepeats, ScoreFactory
from Data import DrumKit, Drum, DBErrors
from Data.DBErrors import BadTimeError, OverSizeMeasure
    def testFactory(self):
        factory = ScoreFactory()
        score = factory()
        self.assertEqual(score.numMeasures(), 32)