def _set_theme ( self, state = None, value = None ):
        if value is None:
            value = self.value

        factory      = self.factory
        theme, image = factory.theme, factory.image
        if value:
            theme, image = factory.on_theme, factory.on_image

        n = (1 * value) * (theme is not None)
        self.checkbox.set( offset = ( n, n ),
                           theme  = theme or factory.theme,
                           image  = image or factory.image,
                           state  = state or self.checkbox.state )
Entry point for oslo.config-generator.
dataset/ETHPy150Open enthought/traitsui/traitsui/wx/themed_checkbox_editor.py/_ThemedCheckboxEditor._set_theme--crossover with--dataset/ETHPy150Open openstack-infra/python-storyboardclient/storyboardclient/openstack/common/log.py/list_opts