src/eric7/UI/EmailDialog.py

branch
eric7
changeset 9482
a2bc06a54d9d
parent 9473
3f23dbf37dbe
child 9653
e67609152c5e
equal deleted inserted replaced
9481:0b936ff1bbb9 9482:a2bc06a54d9d
31 ) 31 )
32 32
33 from eric7 import Preferences, Utilities 33 from eric7 import Preferences, Utilities
34 from eric7.EricGui.EricOverrideCursor import EricOverrideCursor 34 from eric7.EricGui.EricOverrideCursor import EricOverrideCursor
35 from eric7.EricWidgets import EricFileDialog, EricMessageBox 35 from eric7.EricWidgets import EricFileDialog, EricMessageBox
36 from eric7.EricWidgets.EricSimpleHelpDialog import EricSimpleHelpDialog
36 37
37 from .Info import BugAddress, FeatureAddress 38 from .Info import BugAddress, FeatureAddress
38 from .Ui_EmailDialog import Ui_EmailDialog 39 from .Ui_EmailDialog import Ui_EmailDialog
39 40
40 ############################################################ 41 ############################################################
155 """ 156 """
156 Private slot to show some help text "how to turn on the Gmail API". 157 Private slot to show some help text "how to turn on the Gmail API".
157 """ 158 """
158 if self.__helpDialog is None: 159 if self.__helpDialog is None:
159 try: 160 try:
160 from eric7.EricNetwork.EricGoogleMail import GoogleMailHelp 161 from eric7.EricNetwork.EricGoogleMail import ( # __IGNORE_WARNING__
162 GoogleMailHelp,
163 )
161 164
162 helpStr = GoogleMailHelp() 165 helpStr = GoogleMailHelp()
163 except ImportError: 166 except ImportError:
164 helpStr = self.tr( 167 helpStr = self.tr(
165 "<p>The Google Mail Client API is not installed." 168 "<p>The Google Mail Client API is not installed."
166 " Change to the Email configuration page for more.</p>" 169 " Change to the Email configuration page for more.</p>"
167 ) 170 )
168
169 from eric7.EricWidgets.EricSimpleHelpDialog import EricSimpleHelpDialog
170 171
171 self.__helpDialog = EricSimpleHelpDialog( 172 self.__helpDialog = EricSimpleHelpDialog(
172 title=self.tr("Gmail API Help"), helpStr=helpStr, parent=self 173 title=self.tr("Gmail API Help"), helpStr=helpStr, parent=self
173 ) 174 )
174 175
405 406
406 @param msg email message to be sent 407 @param msg email message to be sent
407 @type email.mime.text.MIMEBase 408 @type email.mime.text.MIMEBase
408 """ 409 """
409 try: 410 try:
410 from eric7.EricNetwork.EricGoogleMail import EricGoogleMail 411 from eric7.EricNetwork.EricGoogleMail import ( # __IGNORE_WARNING_I101__
412 EricGoogleMail,
413 )
411 414
412 if self.__googleMail is None: 415 if self.__googleMail is None:
413 self.__googleMail = EricGoogleMail(self) 416 self.__googleMail = EricGoogleMail(self)
414 self.__googleMail.sendResult.connect(self.__gmailSendResult) 417 self.__googleMail.sendResult.connect(self.__gmailSendResult)
415 418

eric ide

mercurial