fix recording window jiggle, add debug mode to mac build scripts

This commit is contained in:
Damien Elmes 2009-02-06 18:37:01 +09:00
parent 0977c50a0c
commit 6c975bbdd5
3 changed files with 12 additions and 7 deletions

View file

@ -20,13 +20,13 @@ def getAudio(parent, string=""):
but.setIcon(QIcon(":/icons/media-playback-stop.png"))
#but.setIconSize(QSize(32, 32))
mb.addButton(but, QMessageBox.RejectRole)
mb.show()
t = time.time()
r.start()
QApplication.instance().processEvents()
while not mb.clickedButton():
txt =_("Recording...<br>Time: %0.1f")
mb.setText(txt % (time.time() - t))
mb.show()
QApplication.instance().processEvents()
# ensure at least a second captured
saveGeom(mb, "audioRecorder")

View file

@ -1,8 +1,10 @@
#!/bin/bash
cd /Volumes/Two/anki
echo "cleaning up..."
rm -rf build dist
if [ "x$debug" = "x" ]; then
echo "cleaning up..."
rm -rf build dist
fi
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 .

View file

@ -27,6 +27,8 @@ class bdist_dmg(Command):
def run(self):
self.run_command('py2app')
if 'debug' in os.environ:
return
# zlib
result = os.spawnvp(os.P_WAIT, 'hdiutil', (
'hdiutil create -ov -format UDZO ' +
@ -56,6 +58,7 @@ PLIST = dict(
OPTIONS = {
'argv_emulation': True,
'optimize': 0,
'alias': 'debug' in os.environ,
'plist': PLIST,
'iconfile': 'ankiqt/mac/anki.icns',
"includes": ["sip", "cgi", "encodings", "encodings.utf_8",