27c90c5dd5
- added ability for ScatterPlotItem to use arbitrary symbol shapes - added scatter plot speed test for evaluating new methods - added butterworth notch filter to flowchart library - fixed bugs with ViewBox trying to close itself after python has started cleaning up - fixed python 2.6 compatibility bug in PlotCurveItem - fixed support for list-of-dicts and dict-of-lists input for PlotDataItem - check to ensure Qt version is >= 4.7 - workaround for numpy segmentation fault - several other minor updates and documentation changes
24 lines
706 B
Python
24 lines
706 B
Python
import os, sys
|
|
## Search the package tree for all .ui files, compile each to
|
|
## a .py for pyqt and pyside
|
|
|
|
pyqtuic = 'pyuic4'
|
|
pysideuic = 'pyside-uic'
|
|
|
|
for path, sd, files in os.walk('.'):
|
|
for f in files:
|
|
base, ext = os.path.splitext(f)
|
|
if ext != '.ui':
|
|
continue
|
|
ui = os.path.join(path, f)
|
|
|
|
py = os.path.join(path, base + '_pyqt.py')
|
|
if os.stat(ui).st_mtime > os.stat(py).st_mtime:
|
|
os.system('%s %s > %s' % (pyqtuic, ui, py))
|
|
print(py)
|
|
|
|
py = os.path.join(path, base + '_pyside.py')
|
|
if os.stat(ui).st_mtime > os.stat(py).st_mtime:
|
|
os.system('%s %s > %s' % (pysideuic, ui, py))
|
|
print(py)
|