diff -r 5d39cd2d7960 -r 49ea50a9a61e eric6/Preferences/ConfigurationPages/EditorFilePage.py --- a/eric6/Preferences/ConfigurationPages/EditorFilePage.py Sun Oct 27 19:20:41 2019 +0100 +++ b/eric6/Preferences/ConfigurationPages/EditorFilePage.py Mon Oct 28 19:12:37 2019 +0100 @@ -7,12 +7,14 @@ Module implementing the Editor File Handling configuration page. """ +import sys from PyQt5.QtCore import pyqtSlot from PyQt5.QtWidgets import QListWidgetItem, QInputDialog, QLineEdit from PyQt5.Qsci import QsciScintilla from E5Gui import E5MessageBox +from E5Gui.E5Application import e5App from .ConfigurationPageBase import ConfigurationPageBase from .Ui_EditorFilePage import Ui_EditorFilePage @@ -355,6 +357,14 @@ self.editFileFilterButton.setEnabled(current is not None) self.deleteFileFilterButton.setEnabled(current is not None) + @pyqtSlot() + def on_previewMarkdownPyMdownInstallPushButton_clicked(self): + """ + Private slot to install the pymdown extensions package via pip. + """ + pip = e5App().getObject("Pip") + pip.installPackages(["pymdown-extensions"], interpreter=sys.executable) + def create(dlg): """