Skip to content
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (9 sloc) 254 Bytes
from PyQt4 import uic
import glob
for fname in glob.glob("*.ui"):
print("converting",fname)
fin = open(fname,'r')
fout = open(fname.replace(".ui",".py"),'w')
uic.compileUi(fin,fout,execute=False)
fin.close()
fout.close()
You can’t perform that action at this time.