9015:dfeefad914ed | 9016:6f079c524e99 |
---|---|
7 Module implementing the Email configuration page. | 7 Module implementing the Email configuration page. |
8 """ | 8 """ |
9 | 9 |
10 import smtplib | 10 import smtplib |
11 import socket | 11 import socket |
12 import sys | |
13 | 12 |
14 from PyQt6.QtCore import pyqtSlot | 13 from PyQt6.QtCore import pyqtSlot |
15 | 14 |
16 from EricWidgets import EricMessageBox | 15 from EricWidgets import EricMessageBox |
17 from EricWidgets.EricApplication import ericApp | 16 from EricWidgets.EricApplication import ericApp |
22 ) | 21 ) |
23 | 22 |
24 from .ConfigurationPageBase import ConfigurationPageBase | 23 from .ConfigurationPageBase import ConfigurationPageBase |
25 from .Ui_EmailPage import Ui_EmailPage | 24 from .Ui_EmailPage import Ui_EmailPage |
26 | 25 |
26 import Globals | |
27 import Preferences | 27 import Preferences |
28 | 28 |
29 | 29 |
30 class EmailPage(ConfigurationPageBase, Ui_EmailPage): | 30 class EmailPage(ConfigurationPageBase, Ui_EmailPage): |
31 """ | 31 """ |
264 def on_googleInstallButton_clicked(self): | 264 def on_googleInstallButton_clicked(self): |
265 """ | 265 """ |
266 Private slot to install the required packages for use of Google Mail. | 266 Private slot to install the required packages for use of Google Mail. |
267 """ | 267 """ |
268 pip = ericApp().getObject("Pip") | 268 pip = ericApp().getObject("Pip") |
269 pip.installPackages(RequiredPackages, interpreter=sys.executable) | 269 pip.installPackages(RequiredPackages, |
270 interpreter=Globals.getPythonExecutable()) | |
270 self.__checkGoogleMail() | 271 self.__checkGoogleMail() |
271 | 272 |
272 @pyqtSlot() | 273 @pyqtSlot() |
273 def on_googleCheckAgainButton_clicked(self): | 274 def on_googleCheckAgainButton_clicked(self): |
274 """ | 275 """ |