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

        factory      = self.factory
        theme, image = factory.hover_off_theme, factory.hover_off_image
        if value:
            theme = factory.hover_on_theme or factory.on_theme
            image = factory.hover_on_image or 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 )

#-------------------------------------------------------------------------------
#  Create the editor factory object:
#-------------------------------------------------------------------------------

# wxPython editor factory for themed checkbox editors:
Sets the theme, image, offset and optional checkbox state to use for
dataset/ETHPy150Open enthought/traitsui/traitsui/wx/themed_checkbox_editor.py/_ThemedCheckboxEditor._set_hover_theme