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

All Samples(16)  |  Call(15)  |  Derive(0)  |  Import(1)

src/d/r/DrumBurp-HEAD/src/GUI/QEditKitDialog.py   DrumBurp(Download)
        newKit, unused = self.getNewKit()
        with open(fname, 'w') as handle:
            indenter = fileUtils.Indenter(handle)
            newKit.write(indenter)
        QMessageBox.information(self, "Kit saved", "Successfully saved drumkit")

src/d/r/DrumBurp-HEAD/src/GUI/QDefaultKitManager.py   DrumBurp(Download)
    def _writeKit(self, name):
        indenter = fileUtils.Indenter("")
        handle = StringIO()
        self._currentKit.write(handle, indenter)
        self._settings.setValue(name, handle.getvalue())

src/d/r/DrumBurp-HEAD/src/test/testBeat.py   DrumBurp(Download)
    def testWrite(self):
        handle = StringIO()
        indenter = fileUtils.Indenter(handle)
        self.beat.write(indenter)
        output = handle.getvalue().splitlines()
    def testWrite(self):
        handle = StringIO()
        indenter = fileUtils.Indenter(handle)
        self.beat.write(indenter)
        output = handle.getvalue().splitlines()

src/d/r/DrumBurp-HEAD/src/test/testFileUtils.py   DrumBurp(Download)
    def setUp(self):
        self.handle = StringIO()
        self.indenter = fileUtils.Indenter(self.handle)
 
    def testNoIndent(self):

src/d/r/DrumBurp-HEAD/src/test/testScoreMetaData.py   DrumBurp(Download)
    def testWrite(self):
        meta = ScoreMetaData.ScoreMetaData()
        meta.makeEmpty()
        handle = StringIO()
        indenter = fileUtils.Indenter(handle)

src/d/r/DrumBurp-HEAD/src/test/testMeasureCount.py   DrumBurp(Download)
    def testWrite(self):
        handle = StringIO()
        indenter = fileUtils.Indenter(handle)
        self.count.write(indenter)
        output = handle.getvalue().splitlines()
    def testWrite(self):
        handle = StringIO()
        indenter = fileUtils.Indenter(handle)
        self.count.write(indenter)
        output = handle.getvalue().splitlines()

src/d/r/DrumBurp-HEAD/src/test/testMeasure.py   DrumBurp(Download)
    def get_output(self):
        handle = StringIO()
        indenter = fileUtils.Indenter(handle)
        self.measure.write(indenter)
        return handle.getvalue().splitlines()

src/d/r/DrumBurp-HEAD/src/test/testFontOptions.py   DrumBurp(Download)
    def testWrite(self):
        options = FontOptions.FontOptions()
        handle = StringIO()
        indenter = fileUtils.Indenter(handle)
        options.write(indenter)

src/d/r/DrumBurp-HEAD/src/test/testDrumKit.py   DrumBurp(Download)
        kit.addDrum(drum)
        handle = StringIO()
        indenter = fileUtils.Indenter(handle)
        kit.write(indenter)
        outlines = handle.getvalue().splitlines()

src/d/r/DrumBurp-HEAD/src/test/testDrum.py   DrumBurp(Download)
# pylint: disable-msg=R0904
from Data.Drum import Drum, HeadData
from Data.fileUtils import Indenter
from Data import DefaultKits
 
class TestHeadData(unittest.TestCase):
    def testWrite_Default(self):
        handle = StringIO()
        headData = HeadData()
        indenter = Indenter(handle)
    def testWrite_Different(self):
        handle = StringIO()
        headData = HeadData(72, 100, "ghost", "cross", 1, "choke", 1, "c")
        indenter = Indenter(handle)
        headData.write("x", indenter)
    def testWrite(self):
        drum, first_, second_ = self.makeDrum()
        second_.shortcut = "a"
        outstring = StringIO()
        indenter = Indenter(outstring)

  1 | 2  Next