2216 |
2216 |
2217 def __initPySideDocAction(self): |
2217 def __initPySideDocAction(self): |
2218 """ |
2218 """ |
2219 Private slot to initialize the action to show the PySide documentation. |
2219 Private slot to initialize the action to show the PySide documentation. |
2220 """ |
2220 """ |
2221 try: |
2221 if Utilities.checkPyside(): |
2222 import PySide |
|
2223 self.pysideDocAct = E5Action(self.trUtf8('PySide Documentation'), |
2222 self.pysideDocAct = E5Action(self.trUtf8('PySide Documentation'), |
2224 self.trUtf8('Py&Side Documentation'), 0, 0, self, 'pyside_documentation') |
2223 self.trUtf8('Py&Side Documentation'), 0, 0, self, 'pyside_documentation') |
2225 self.pysideDocAct.setStatusTip(self.trUtf8('Open PySide Documentation')) |
2224 self.pysideDocAct.setStatusTip(self.trUtf8('Open PySide Documentation')) |
2226 self.pysideDocAct.setWhatsThis(self.trUtf8( |
2225 self.pysideDocAct.setWhatsThis(self.trUtf8( |
2227 """<b>PySide Documentation</b>""" |
2226 """<b>PySide Documentation</b>""" |
2229 """this will either show the help in Eric's internal help viewer, or """ |
2228 """this will either show the help in Eric's internal help viewer, or """ |
2230 """execute a web browser or Qt Assistant. </p>""" |
2229 """execute a web browser or Qt Assistant. </p>""" |
2231 )) |
2230 )) |
2232 self.pysideDocAct.triggered[()].connect(self.__showPySideDoc) |
2231 self.pysideDocAct.triggered[()].connect(self.__showPySideDoc) |
2233 self.actions.append(self.pysideDocAct) |
2232 self.actions.append(self.pysideDocAct) |
2234 del PySide |
2233 else: |
2235 except ImportError: |
|
2236 self.pysideDocAct = None |
2234 self.pysideDocAct = None |
2237 |
2235 |
2238 def __initMenus(self): |
2236 def __initMenus(self): |
2239 """ |
2237 """ |
2240 Private slot to create the menus. |
2238 Private slot to create the menus. |