Helpviewer/PersonalInformationManager/PersonalInformationManager.py

changeset 6113
0cf5c9683a51
parent 6048
82ad8ec9548c
child 6121
d3d64f3128b3
equal deleted inserted replaced
6112:cc1fc199643b 6113:0cf5c9683a51
222 Public method to allow the personal information manager to connect to 222 Public method to allow the personal information manager to connect to
223 the page. 223 the page.
224 224
225 @param page reference to the web page (HelpWebPage) 225 @param page reference to the web page (HelpWebPage)
226 """ 226 """
227 page.loadFinished.connect(self.__pageLoadFinished) 227 page.loadFinished.connect(lambda ok: self.__pageLoadFinished(ok, page))
228 228
229 def __pageLoadFinished(self, ok): 229 def __pageLoadFinished(self, ok, page):
230 """ 230 """
231 Private slot to handle the completion of a page load. 231 Private slot to handle the completion of a page load.
232 232
233 @param ok flag indicating a successful load (boolean) 233 @param ok flag indicating a successful load
234 """ 234 @type bool
235 page = self.sender() 235 @param page reference to the web page object
236 @type HelpWebPage
237 """
236 if page is None or not ok: 238 if page is None or not ok:
237 return 239 return
238 240
239 if not self.__loaded: 241 if not self.__loaded:
240 self.__loadSettings() 242 self.__loadSettings()

eric ide

mercurial