1980 self.condaWidgetActivateAct.triggered.connect( |
1976 self.condaWidgetActivateAct.triggered.connect( |
1981 self.__activateCondaWidget) |
1977 self.__activateCondaWidget) |
1982 self.actions.append(self.condaWidgetActivateAct) |
1978 self.actions.append(self.condaWidgetActivateAct) |
1983 self.addAction(self.condaWidgetActivateAct) |
1979 self.addAction(self.condaWidgetActivateAct) |
1984 |
1980 |
1985 # TODO: add action for "MicroPython", Ctrl+Alt+Shift+M |
|
1986 if self.microPythonWidget is not None: |
1981 if self.microPythonWidget is not None: |
1987 self.microPythonWidgetActivateAct = E5Action( |
1982 self.microPythonWidgetActivateAct = E5Action( |
1988 self.tr('MicroPython'), |
1983 self.tr('MicroPython'), |
1989 self.tr('MicroPython'), |
1984 self.tr('MicroPython'), |
1990 QKeySequence(self.tr("Ctrl+Alt+Shift+M")), |
1985 QKeySequence(self.tr("Ctrl+Alt+Shift+M")), |
2781 self.pyqt4DocAct.triggered.connect(self.__showPyQt4Doc) |
2776 self.pyqt4DocAct.triggered.connect(self.__showPyQt4Doc) |
2782 self.actions.append(self.pyqt4DocAct) |
2777 self.actions.append(self.pyqt4DocAct) |
2783 except ImportError: |
2778 except ImportError: |
2784 self.pyqt4DocAct = None |
2779 self.pyqt4DocAct = None |
2785 |
2780 |
2786 try: |
2781 self.pyqt5DocAct = E5Action( |
2787 import PyQt5 # __IGNORE_WARNING__ |
2782 self.tr('PyQt5 Documentation'), |
2788 self.pyqt5DocAct = E5Action( |
2783 self.tr('PyQt&5 Documentation'), |
2789 self.tr('PyQt5 Documentation'), |
2784 0, 0, self, 'pyqt5_documentation') |
2790 self.tr('PyQt&5 Documentation'), |
2785 self.pyqt5DocAct.setStatusTip(self.tr( |
2791 0, 0, self, 'pyqt5_documentation') |
2786 'Open PyQt5 Documentation')) |
2792 self.pyqt5DocAct.setStatusTip(self.tr( |
2787 self.pyqt5DocAct.setWhatsThis(self.tr( |
2793 'Open PyQt5 Documentation')) |
2788 """<b>PyQt5 Documentation</b>""" |
2794 self.pyqt5DocAct.setWhatsThis(self.tr( |
2789 """<p>Display the PyQt5 Documentation. Dependent upon your""" |
2795 """<b>PyQt5 Documentation</b>""" |
2790 """ settings, this will either show the help in Eric's""" |
2796 """<p>Display the PyQt5 Documentation. Dependent upon your""" |
2791 """ internal help viewer/web browser, or execute a web""" |
2797 """ settings, this will either show the help in Eric's""" |
2792 """ browser or Qt Assistant. </p>""" |
2798 """ internal help viewer/web browser, or execute a web""" |
2793 )) |
2799 """ browser or Qt Assistant. </p>""" |
2794 self.pyqt5DocAct.triggered.connect(self.__showPyQt5Doc) |
2800 )) |
2795 self.actions.append(self.pyqt5DocAct) |
2801 self.pyqt5DocAct.triggered.connect(self.__showPyQt5Doc) |
|
2802 self.actions.append(self.pyqt5DocAct) |
|
2803 except ImportError: |
|
2804 self.pyqt5DocAct = None |
|
2805 |
2796 |
2806 def __initPythonDocActions(self): |
2797 def __initPythonDocActions(self): |
2807 """ |
2798 """ |
2808 Private slot to initialize the actions to show the Python |
2799 Private slot to initialize the actions to show the Python |
2809 documentation. |
2800 documentation. |