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

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

Handles the inputting of email settings

Definition at line 1942 of file textRouter.py.

01942                                                    :
        """Handles the inputting of email settings"""

        inputDetails = [ ["serverName", self.strs["emlPrefs"]["srvNamP"], 
                          self.strs["emlPrefs"]["srvNamH"],
                          self.emailPrefs["serverName"], 1],

                         ["serverPort", self.strs["emlPrefs"]["srvPtP"],
                          self.strs["emlPrefs"]["srvPtH"],
                          self.emailPrefs["serverPort"], 2],

                         ["name", self.strs["emlPrefs"]["nameP"],
                          self.strs["emlPrefs"]["nameH"],
                          self.emailPrefs["name"], 1],

                         ["email", self.strs["emlPrefs"]["addrP"],
                          self.strs["emlPrefs"]["addrH"],
                          self.emailPrefs["email"], 1],

                         ]

        dlg = PreferencesDialog(self, "Email Preferences", inputDetails)

        dlg.showModal()
        if dlg.accepted():
            self.emailPrefs["serverName"] = dlg.components.serverName.text
            self.emailPrefs["serverPort"] = int(dlg.components.serverPort.text)
            self.emailPrefs["name"] = dlg.components.name.text
            self.emailPrefs["email"] = dlg.components.email.text
            self.status("Email settings updated.")
        else:
            self.status("Cancelled.")
        dlg.destroy()



    def on_menuSettingsRSS_select(self, event):


Generated by  Doxygen 1.6.0   Back to index