def popup_confirmation(self): """Open delete contact confirmation window.""" try: name = str(self.book_list.get(self.book_list.curselection())) self.c = dcw.ConfirmationWindow(self.master, name) self.master.wait_window(self.c.top) except: self.c = ns.ConfirmationWindow(self.master)
def popupEdit(self): """Open Edit Contact Window""" try: name = str(self.book_list.get(self.book_list.curselection())) entry = [] try: entry.append(name.split()[0]) except: entry.append('') try: entry.append(name.split()[1]) except: entry.append('') entry_id = db.get_id(entry) self.k = ecw.EditContactWindow(self.master, name, entry_id) self.master.wait_window(self.k.top) except: self.c = ns.ConfirmationWindow(self.master)