Clone wiki

SCons / PyuicBuilder

The SCons wiki has moved to

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:
# and a tip from Sergey Popov on #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 } )