add mac test script, fix record snd option

This commit is contained in:
Damien Elmes 2009-01-17 14:37:24 +09:00
parent 6fa64e0458
commit 559a896f24
2 changed files with 9 additions and 1 deletions

View file

@ -600,10 +600,11 @@ class FactEditor(object):
w.insertHtml('[sound:%s]' % path) w.insertHtml('[sound:%s]' % path)
def onRecSound(self): def onRecSound(self):
self.initMedia()
w = self.focusedEdit() w = self.focusedEdit()
file = getAudio(self.parent) file = getAudio(self.parent)
if file: if file:
self._addSound(file, widget=w) self._addSound(unicode(file), widget=w)
class FactEdit(QTextEdit): class FactEdit(QTextEdit):

7
mac/test.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/bash
cd /Volumes/Two/anki
echo "syncing updates..."
rsync -av reflex:Lib/code/libanki --exclude .git --exclude build --exclude dist --delete .
rsync -av reflex:Lib/code/ankiqt --exclude .git --exclude build --exclude dist --delete .
./ankiqt/anki