15 |
15 |
16 from E5Gui import E5MessageBox |
16 from E5Gui import E5MessageBox |
17 from E5Gui.E5Application import e5App |
17 from E5Gui.E5Application import e5App |
18 from E5Gui.E5OverrideCursor import E5OverrideCursor |
18 from E5Gui.E5OverrideCursor import E5OverrideCursor |
19 |
19 |
20 from E5Network.E5GoogleMailHelpers import getInstallCommand, RequiredPackages |
20 from EricNetwork.EricGoogleMailHelpers import getInstallCommand, RequiredPackages |
21 |
21 |
22 from .ConfigurationPageBase import ConfigurationPageBase |
22 from .ConfigurationPageBase import ConfigurationPageBase |
23 from .Ui_EmailPage import Ui_EmailPage |
23 from .Ui_EmailPage import Ui_EmailPage |
24 |
24 |
25 import Preferences |
25 import Preferences |
241 """ |
241 """ |
242 Private slot to show some help text "how to turn on the Gmail API". |
242 Private slot to show some help text "how to turn on the Gmail API". |
243 """ |
243 """ |
244 if self.__helpDialog is None: |
244 if self.__helpDialog is None: |
245 try: |
245 try: |
246 from E5Network.E5GoogleMail import GoogleMailHelp |
246 from EricNetwork.EricGoogleMail import GoogleMailHelp |
247 helpStr = GoogleMailHelp() |
247 helpStr = GoogleMailHelp() |
248 except ImportError: |
248 except ImportError: |
249 helpStr = self.tr( |
249 helpStr = self.tr( |
250 "<p>The Google Mail Client API is not installed." |
250 "<p>The Google Mail Client API is not installed." |
251 " Use <code>{0}</code> to install it.</p>" |
251 " Use <code>{0}</code> to install it.</p>" |
284 self.googleCheckAgainButton.show() |
284 self.googleCheckAgainButton.show() |
285 self.googleHelpButton.setEnabled(True) |
285 self.googleHelpButton.setEnabled(True) |
286 self.googleMailCheckBox.setEnabled(True) |
286 self.googleMailCheckBox.setEnabled(True) |
287 |
287 |
288 try: |
288 try: |
289 import E5Network.E5GoogleMail # __IGNORE_WARNING__ |
289 import EricNetwork.EricGoogleMail # __IGNORE_WARNING__ |
290 from E5Network.E5GoogleMailHelpers import ( |
290 from EricNetwork.EricGoogleMailHelpers import ( |
291 isClientSecretFileAvailable |
291 isClientSecretFileAvailable |
292 ) |
292 ) |
293 |
293 |
294 self.googleInstallButton.hide() |
294 self.googleInstallButton.hide() |
295 if not isClientSecretFileAvailable(): |
295 if not isClientSecretFileAvailable(): |