Files
picard/ui/compile.py
Lukáš Lalinský 596a82c288 Lots and lots of changes...
* Use Qt Designer UI files for the options dialog
 * More complete Mutagen metadata plugin
 * Tagz (TaggerScript) implementation
 * More usable configuration system
 * Some coding style changes (PEP-008)
2006-09-14 21:20:15 +02:00

14 lines
369 B
Python

#!/usr/bin/env python
from PyQt4 import uic
import glob
import os.path
print "Compiling UI files..."
for uifile in glob.glob("*.ui"):
pyfile = "ui_%s.py" % os.path.splitext(os.path.basename(uifile))[0]
pyfile = os.path.join("..", "picard", "ui", pyfile)
print " * %s => %s" % (uifile, pyfile)
uic.compileUi(uifile, file(pyfile, "w"), translator="_")