def __init__(self, *args, **kwargs): wx.Panel.__init__(self, *args, **kwargs) self.updateLabel = {"add":"Add", "update":"Update"} self.types = PHONE_TYPE.values() self.addCtrls()
def setType(p, v): """spa = StructuredPostalAddress(), v = value""" p.rel=PHONE_TYPE.getKey(v)