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 |