eric6/WebBrowser/QtHelp/HelpIndexWidget.py

changeset 8260
2161475d9639
parent 8218
7c09585bd960
child 8273
698ae46f40a4
equal deleted inserted replaced
8259:2bbec88047dd 8260:2161475d9639
110 @type dict of key:str and value:QUrl 110 @type dict of key:str and value:QUrl
111 @param keyword keyword for the entry 111 @param keyword keyword for the entry
112 @type str 112 @type str
113 """ 113 """
114 modifiers = QApplication.keyboardModifiers() 114 modifiers = QApplication.keyboardModifiers()
115 if len(links) == 1: 115 url = (
116 url = QUrl(links[list(links.keys())[0]]) 116 QUrl(links[list(links.keys())[0]])
117 else: 117 if len(links) == 1 else
118 url = self.__selectLink(links, keyword) 118 self.__selectLink(links, keyword)
119 )
119 self.__linkActivated(url, keyword, modifiers) 120 self.__linkActivated(url, keyword, modifiers)
120 121
121 def __selectLink(self, links, keyword): 122 def __selectLink(self, links, keyword):
122 """ 123 """
123 Private method to give the user a chance to select among the 124 Private method to give the user a chance to select among the

eric ide

mercurial