How to use the pygubu.builder.builderobject function in pygubu

To help you get started, we’ve selected a few pygubu examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alejandroautalan / pygubu / pygubu / __init__.py View on Github external
def register_property(name, description):
    return pygubu.builder.builderobject.register_property(name, description)
github alejandroautalan / pygubu / pygubudesigner / properties.py View on Github external
if name not in CUSTOM_OPTIONS:
        CUSTOM_OPTIONS[name] = descr
        WIDGET_PROPERTIES.update(CUSTOM_OPTIONS)
        WIDGET_CUSTOM_OPTIONS.append(name)
        WIDGET_CUSTOM_OPTIONS.sort()
        logger.debug('Registered property; {0}'.format(name))

def register_property(name, descr):
    _register_custom(name, descr)
    builderobject._old_register_property(name, descr)

if not hasattr(builderobject, '_register_fixed_'):
    for name, descr in builderobject.CUSTOM_PROPERTIES.items():
        _register_custom(name, descr)
    builderobject._register_fixed_ = True
    builderobject._old_register_property = builderobject.register_property
    builderobject.register_property = register_property
    logger.debug('Installed custom register_property function')
github alejandroautalan / pygubu / pygubudesigner / properties.py View on Github external
def _register_custom(name, descr):
    if name not in CUSTOM_OPTIONS:
        CUSTOM_OPTIONS[name] = descr
        WIDGET_PROPERTIES.update(CUSTOM_OPTIONS)
        WIDGET_CUSTOM_OPTIONS.append(name)
        WIDGET_CUSTOM_OPTIONS.sort()
        logger.debug('Registered property; {0}'.format(name))

def register_property(name, descr):
    _register_custom(name, descr)
    builderobject._old_register_property(name, descr)

if not hasattr(builderobject, '_register_fixed_'):
    for name, descr in builderobject.CUSTOM_PROPERTIES.items():
        _register_custom(name, descr)
    builderobject._register_fixed_ = True
    builderobject._old_register_property = builderobject.register_property
    builderobject.register_property = register_property
    logger.debug('Installed custom register_property function')
github alejandroautalan / pygubu / pygubudesigner / properties.py View on Github external
def _register_custom(name, descr):
    if name not in CUSTOM_OPTIONS:
        CUSTOM_OPTIONS[name] = descr
        WIDGET_PROPERTIES.update(CUSTOM_OPTIONS)
        WIDGET_CUSTOM_OPTIONS.append(name)
        WIDGET_CUSTOM_OPTIONS.sort()
        logger.debug('Registered property; {0}'.format(name))

def register_property(name, descr):
    _register_custom(name, descr)
    builderobject._old_register_property(name, descr)

if not hasattr(builderobject, '_register_fixed_'):
    for name, descr in builderobject.CUSTOM_PROPERTIES.items():
        _register_custom(name, descr)
    builderobject._register_fixed_ = True
    builderobject._old_register_property = builderobject.register_property
    builderobject.register_property = register_property
    logger.debug('Installed custom register_property function')
github alejandroautalan / pygubu / pygubudesigner / properties.py View on Github external
]


def _register_custom(name, descr):
    if name not in CUSTOM_OPTIONS:
        CUSTOM_OPTIONS[name] = descr
        WIDGET_PROPERTIES.update(CUSTOM_OPTIONS)
        WIDGET_CUSTOM_OPTIONS.append(name)
        WIDGET_CUSTOM_OPTIONS.sort()
        logger.debug('Registered property; {0}'.format(name))

def register_property(name, descr):
    _register_custom(name, descr)
    builderobject._old_register_property(name, descr)

if not hasattr(builderobject, '_register_fixed_'):
    for name, descr in builderobject.CUSTOM_PROPERTIES.items():
        _register_custom(name, descr)
    builderobject._register_fixed_ = True
    builderobject._old_register_property = builderobject.register_property
    builderobject.register_property = register_property
    logger.debug('Installed custom register_property function')