Logo Search packages:      
Sourcecode: pythoncard version File versions  Download package

def textRouter::TextRouter::on_menuEmailRemoveEmailRcpt_select (   self,
  event 
)

Lists the predefined email address so the user can choose one to delete.

Definition at line 1916 of file textRouter.py.

01916                                                        :
        """Lists the predefined email address so the user can choose one to delete."""
        if self.emailRcpts == []:
            self.status("There are no predefined email address to remove.")
            return 0

        options = [ "%s <%s>" % (addy[0], addy[1]) for addy in self.emailRcpts ]

        default = options[0]
        dlg = ChooserDialog(self, 'Choose Email Address', \
                            "Choose which email address to remove...", \
                            options, default)
        dlg.showModal()
        
        if not dlg.accepted():
            self.status("Address deletion cancelled.")
        else:
            i = dlg.components.options.findString(dlg.components.options.stringSelection)
            if i == -1:
                self.status("No address selected for deleting.")
            else:
                self.status("Removed predefined address: '%s'." % options[i])
                self.emailRcpts[i:i+1] = []
        dlg.destroy()


    def on_menuEmailPreferences_select(self, event):


Generated by  Doxygen 1.6.0   Back to index