Esempio n. 1
0
    def saveChanges(self):
        """Saves changes made to emails.
        """
        emails = []
        idx = -1
        while True:
            idx = self.emailListCtrl.GetNextItem(idx, wx.LIST_NEXT_ALL)
            if idx != -1:

                e = self.emailListCtrl.getColumnText(idx, COLIDX_EMAIL)
                t = REL_LABEL.getKey(self.emailListCtrl.getColumnText(idx, COLIDX_TYPE))
                l = self.emailListCtrl.getColumnText(idx, COLIDX_LABEL)
                p = "true" if (self.emailListCtrl.getColumnText(idx, COLIDX_PRIMARY) == "Yes") else "false"

                emails.append([e,t,l,p])
            else:
                break

        self.gridTable.SetValue(self.row, self.col, emails)
Esempio n. 2
0
def setType(o, v):
    o.rel=REL_LABEL.getKey(v)
Esempio n. 3
0
def setTY(spa, v):
    """spa = StructuredPostalAddress(), v = value"""
    spa.rel=REL_LABEL.getKey(v)