Example #1
0
    def __init__(self, *args, **kwargs):

        wx.Panel.__init__(self, *args, **kwargs)

        self.updateLabel = {"add":"Add", "update":"Update"}
        self.types = PHONE_TYPE.values()

        self.addCtrls()
Example #2
0
def setType(p, v):
    """spa = StructuredPostalAddress(), v = value"""
    p.rel=PHONE_TYPE.getKey(v)