Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def register_property(name, description):
return pygubu.builder.builderobject.register_property(name, description)
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')
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')
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')
]
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')