(self, data)
| 43 | super(WebEngineView, self).closeEvent(event) |
| 44 | |
| 45 | def bytestostr(self, data): |
| 46 | if isinstance(data, str): |
| 47 | return data |
| 48 | if isinstance(data, QByteArray): |
| 49 | data = data.data() |
| 50 | if isinstance(data, bytes): |
| 51 | data = data.decode(errors='ignore') |
| 52 | else: |
| 53 | data = str(data) |
| 54 | return data |
| 55 | |
| 56 | def onLoadFinished(self): |
| 57 | print("*****AllDomainCookies:", self.getAllDomainCookies()) |