from vb2py.targets.pythoncard.controlclasses import VBWrapped, VBWidget
from vb2py.targets.pythoncard import Register
import vb2py.logger
log = vb2py.logger.getLogger("VBCheckBox")

from PythonCard.components import checkbox
import wx
import sys
from PythonCard import event, registry, widget


class VBCheckBox(VBWidget):
    __metaclass__ = VBWrapped

    _translations = {
            "Text" : "text",
            "Enabled" : "enabled",
            "Visible" : "visible",
            "Value" : "checked",
            "Caption" : "label",
        }

    _indexed_translations = {
            "Left" : ("position", 0),
            "Top" : ("position", 1),
            "Width" : ("size", 0),
            "Height" : ("size", 1),
        }

    _proxy_for = checkbox.CheckBox


log.debug("Registering VBCheckBox as '%s'" % sys.modules[__name__].VBCheckBox)
Register(VBCheckBox)

from vb2py.targets.pythoncard.controlclasses import VBWrapped, VBWidget
from vb2py.targets.pythoncard import Register
import vb2py.logger
log = vb2py.logger.getLogger("VBCheckBox")

from PythonCard.components import checkbox
import wx
import sys
from PythonCard import event, registry, widget


class VBCheckBox(VBWidget):
    __metaclass__ = VBWrapped

    _translations = {
            "Text" : "text",
            "Enabled" : "enabled",
            "Visible" : "visible",
            "Value" : "checked",
            "Caption" : "label",
        }

    _indexed_translations = {
            "Left" : ("position", 0),
            "Top" : ("position", 1),
            "Width" : ("size", 0),
            "Height" : ("size", 1),
        }

    _proxy_for = checkbox.CheckBox


log.debug("Registering VBCheckBox as '%s'" % sys.modules[__name__].VBCheckBox)
Register(VBCheckBox)
