Please note:The SCons wiki is now restored from the attack in March 2013. All old passwords have been invalidated. Please reset your password if you have an account. If you note missing pages, please report them to webmaster@scons.org. Also, new account creation is currently disabled due to an ongoing spam flood (2013/08/27).

PyuicBuilder is simple builder to generate Python files for PyQt from Qt .ui sources. The .ui files are typically created in QtDesigner.

# Builder for PyQt pyuic4
# Based on this: http://osdir.com/ml/programming.tools.scons.user/2003-08/msg00126.html
# and a tip from Sergey Popov on freenode.net #scons

import os
env = Environment(ENV = os.environ )

uic_builder_py = Builder(
        action = 'pyuic4 $SOURCE -o $TARGET',
    suffix = '.py',
        src_suffix = '.ui',
        single_source = True)

env.Append( BUILDERS = { 'FormPy': uic_builder_py } )

env.FormPy(source=Glob('*.ui'))

PyuicBuilder (last edited 2010-03-31 20:10:10 by GlennRamsey)