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

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

Allows the user to define a new email address.

Definition at line 1895 of file textRouter.py.

01895                                                     :
        """Allows the user to define a new email address."""

        inputDetails = [ ["name", self.strs["newEmlPrefs"]["nameP"], \
                          self.strs["newEmlPrefs"]["nameH"],
                          "", 1],
                         ["email", self.strs["newEmlPrefs"]["addrP"], \
                          self.strs["newEmlPrefs"]["addrH"], \
                          "", 1],
                         ]

        dlg = PreferencesDialog(self, "New Predefined Email Address", inputDetails)

        dlg.showModal()
        if dlg.accepted():
            self.emailRcpts.append( [ dlg.components.name.text, dlg.components.email.text ] )
            self.status("Predefined email address added: '%s <%s>'" % (self.emailRcpts[-1][0], self.emailRcpts[-1][1]))
        else:
            self.status("New email address cancelled.")
        dlg.destroy()

    def on_menuEmailRemoveEmailRcpt_select(self, event):


Generated by  Doxygen 1.6.0   Back to index