WebBrowser/PersonalInformationManager/PersonalInformationManager.py

changeset 6113
0cf5c9683a51
parent 6048
82ad8ec9548c
child 6118
da9e08920e7c
equal deleted inserted replaced
6112:cc1fc199643b 6113:0cf5c9683a51
229 def connectPage(self, page): 229 def connectPage(self, page):
230 """ 230 """
231 Public method to allow the personal information manager to connect to 231 Public method to allow the personal information manager to connect to
232 the page. 232 the page.
233 233
234 @param page reference to the web page (HelpWebPage) 234 @param page reference to the web page
235 """ 235 @type WebBrowserPage
236 page.loadFinished.connect(self.__pageLoadFinished) 236 """
237 237 page.loadFinished.connect(lambda ok:self.__pageLoadFinished(ok, page))
238 def __pageLoadFinished(self, ok): 238
239 def __pageLoadFinished(self, ok, page):
239 """ 240 """
240 Private slot to handle the completion of a page load. 241 Private slot to handle the completion of a page load.
241 242
242 @param ok flag indicating a successful load (boolean) 243 @param ok flag indicating a successful load
243 """ 244 @type bool
244 page = self.sender() 245 @param page reference to the web page object
246 @type WebBrowserPage
247 """
245 if page is None or not ok: 248 if page is None or not ok:
246 return 249 return
247 250
248 if not self.__loaded: 251 if not self.__loaded:
249 self.__loadSettings() 252 self.__loadSettings()

eric ide

mercurial