/usr/lib/python3/dist-packages/PyQt5/QtWebEngineWidgets.pyi is in python3-pyqt5.qtwebengine 5.10.1+dfsg-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 | # The PEP 484 type hints stub file for the QtWebEngineWidgets module.
#
# Generated by SIP 4.19.7
#
# Copyright (c) 2018 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file is part of PyQt5.
#
# This file may be used under the terms of the GNU General Public License
# version 3.0 as published by the Free Software Foundation and appearing in
# the file LICENSE included in the packaging of this file. Please review the
# following information to ensure the GNU General Public License version 3.0
# requirements will be met: http://www.gnu.org/copyleft/gpl.html.
#
# If you do not wish to use this file under the terms of the GPL version 3.0
# then you may purchase a commercial license. For more information contact
# info@riverbankcomputing.com.
#
# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
import typing
import sip
from PyQt5 import QtWebEngineCore
from PyQt5 import QtWidgets
from PyQt5 import QtWebChannel
from PyQt5 import QtPrintSupport
from PyQt5 import QtNetwork
from PyQt5 import QtCore
# Support for QDate, QDateTime and QTime.
import datetime
# Convenient type aliases.
PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal]
# Convenient aliases for complicated OpenGL types.
PYQT_OPENGL_ARRAY = typing.Union[typing.Sequence[int], typing.Sequence[float],
sip.Buffer, None]
PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int],
typing.Sequence[float], sip.Buffer, int, None]
class QWebEngineCertificateError(sip.simplewrapper):
class Error(int): ...
SslPinnedKeyNotInCertificateChain = ... # type: 'QWebEngineCertificateError.Error'
CertificateCommonNameInvalid = ... # type: 'QWebEngineCertificateError.Error'
CertificateDateInvalid = ... # type: 'QWebEngineCertificateError.Error'
CertificateAuthorityInvalid = ... # type: 'QWebEngineCertificateError.Error'
CertificateContainsErrors = ... # type: 'QWebEngineCertificateError.Error'
CertificateNoRevocationMechanism = ... # type: 'QWebEngineCertificateError.Error'
CertificateUnableToCheckRevocation = ... # type: 'QWebEngineCertificateError.Error'
CertificateRevoked = ... # type: 'QWebEngineCertificateError.Error'
CertificateInvalid = ... # type: 'QWebEngineCertificateError.Error'
CertificateWeakSignatureAlgorithm = ... # type: 'QWebEngineCertificateError.Error'
CertificateNonUniqueName = ... # type: 'QWebEngineCertificateError.Error'
CertificateWeakKey = ... # type: 'QWebEngineCertificateError.Error'
CertificateNameConstraintViolation = ... # type: 'QWebEngineCertificateError.Error'
CertificateValidityTooLong = ... # type: 'QWebEngineCertificateError.Error'
CertificateTransparencyRequired = ... # type: 'QWebEngineCertificateError.Error'
def errorDescription(self) -> str: ...
def isOverridable(self) -> bool: ...
def url(self) -> QtCore.QUrl: ...
def error(self) -> 'QWebEngineCertificateError.Error': ...
class QWebEngineContextMenuData(sip.simplewrapper):
class MediaType(int): ...
MediaTypeNone = ... # type: 'QWebEngineContextMenuData.MediaType'
MediaTypeImage = ... # type: 'QWebEngineContextMenuData.MediaType'
MediaTypeVideo = ... # type: 'QWebEngineContextMenuData.MediaType'
MediaTypeAudio = ... # type: 'QWebEngineContextMenuData.MediaType'
MediaTypeCanvas = ... # type: 'QWebEngineContextMenuData.MediaType'
MediaTypeFile = ... # type: 'QWebEngineContextMenuData.MediaType'
MediaTypePlugin = ... # type: 'QWebEngineContextMenuData.MediaType'
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: 'QWebEngineContextMenuData') -> None: ...
def spellCheckerSuggestions(self) -> typing.List[str]: ...
def misspelledWord(self) -> str: ...
def isContentEditable(self) -> bool: ...
def mediaType(self) -> 'QWebEngineContextMenuData.MediaType': ...
def mediaUrl(self) -> QtCore.QUrl: ...
def linkUrl(self) -> QtCore.QUrl: ...
def linkText(self) -> str: ...
def selectedText(self) -> str: ...
def position(self) -> QtCore.QPoint: ...
def isValid(self) -> bool: ...
class QWebEngineDownloadItem(QtCore.QObject):
class DownloadInterruptReason(int): ...
NoReason = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
FileFailed = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
FileAccessDenied = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
FileNoSpace = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
FileNameTooLong = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
FileTooLarge = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
FileVirusInfected = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
FileTransientError = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
FileBlocked = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
FileSecurityCheckFailed = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
FileTooShort = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
FileHashMismatch = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
NetworkFailed = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
NetworkTimeout = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
NetworkDisconnected = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
NetworkServerDown = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
NetworkInvalidRequest = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
ServerFailed = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
ServerBadContent = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
ServerUnauthorized = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
ServerCertProblem = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
ServerForbidden = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
ServerUnreachable = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
UserCanceled = ... # type: 'QWebEngineDownloadItem.DownloadInterruptReason'
class DownloadType(int): ...
Attachment = ... # type: 'QWebEngineDownloadItem.DownloadType'
DownloadAttribute = ... # type: 'QWebEngineDownloadItem.DownloadType'
UserRequested = ... # type: 'QWebEngineDownloadItem.DownloadType'
SavePage = ... # type: 'QWebEngineDownloadItem.DownloadType'
class SavePageFormat(int): ...
UnknownSaveFormat = ... # type: 'QWebEngineDownloadItem.SavePageFormat'
SingleHtmlSaveFormat = ... # type: 'QWebEngineDownloadItem.SavePageFormat'
CompleteHtmlSaveFormat = ... # type: 'QWebEngineDownloadItem.SavePageFormat'
MimeHtmlSaveFormat = ... # type: 'QWebEngineDownloadItem.SavePageFormat'
class DownloadState(int): ...
DownloadRequested = ... # type: 'QWebEngineDownloadItem.DownloadState'
DownloadInProgress = ... # type: 'QWebEngineDownloadItem.DownloadState'
DownloadCompleted = ... # type: 'QWebEngineDownloadItem.DownloadState'
DownloadCancelled = ... # type: 'QWebEngineDownloadItem.DownloadState'
DownloadInterrupted = ... # type: 'QWebEngineDownloadItem.DownloadState'
def interruptReasonString(self) -> str: ...
def interruptReason(self) -> 'QWebEngineDownloadItem.DownloadInterruptReason': ...
def type(self) -> 'QWebEngineDownloadItem.DownloadType': ...
def setSavePageFormat(self, format: 'QWebEngineDownloadItem.SavePageFormat') -> None: ...
def savePageFormat(self) -> 'QWebEngineDownloadItem.SavePageFormat': ...
def mimeType(self) -> str: ...
def downloadProgress(self, bytesReceived: int, bytesTotal: int) -> None: ...
def stateChanged(self, state: 'QWebEngineDownloadItem.DownloadState') -> None: ...
def finished(self) -> None: ...
def cancel(self) -> None: ...
def accept(self) -> None: ...
def isFinished(self) -> bool: ...
def setPath(self, path: str) -> None: ...
def path(self) -> str: ...
def url(self) -> QtCore.QUrl: ...
def receivedBytes(self) -> int: ...
def totalBytes(self) -> int: ...
def state(self) -> 'QWebEngineDownloadItem.DownloadState': ...
def id(self) -> int: ...
class QWebEngineFullScreenRequest(sip.simplewrapper):
def __init__(self, a0: 'QWebEngineFullScreenRequest') -> None: ...
def origin(self) -> QtCore.QUrl: ...
def toggleOn(self) -> bool: ...
def accept(self) -> None: ...
def reject(self) -> None: ...
class QWebEngineHistoryItem(sip.simplewrapper):
def __init__(self, other: 'QWebEngineHistoryItem') -> None: ...
def swap(self, other: 'QWebEngineHistoryItem') -> None: ...
def isValid(self) -> bool: ...
def iconUrl(self) -> QtCore.QUrl: ...
def lastVisited(self) -> QtCore.QDateTime: ...
def title(self) -> str: ...
def url(self) -> QtCore.QUrl: ...
def originalUrl(self) -> QtCore.QUrl: ...
class QWebEngineHistory(sip.simplewrapper):
def __len__(self) -> int: ...
def count(self) -> int: ...
def currentItemIndex(self) -> int: ...
def itemAt(self, i: int) -> QWebEngineHistoryItem: ...
def forwardItem(self) -> QWebEngineHistoryItem: ...
def currentItem(self) -> QWebEngineHistoryItem: ...
def backItem(self) -> QWebEngineHistoryItem: ...
def goToItem(self, item: QWebEngineHistoryItem) -> None: ...
def forward(self) -> None: ...
def back(self) -> None: ...
def canGoForward(self) -> bool: ...
def canGoBack(self) -> bool: ...
def forwardItems(self, maxItems: int) -> typing.List[QWebEngineHistoryItem]: ...
def backItems(self, maxItems: int) -> typing.List[QWebEngineHistoryItem]: ...
def items(self) -> typing.Any: ...
def clear(self) -> None: ...
class QWebEnginePage(QtCore.QObject):
class RenderProcessTerminationStatus(int): ...
NormalTerminationStatus = ... # type: 'QWebEnginePage.RenderProcessTerminationStatus'
AbnormalTerminationStatus = ... # type: 'QWebEnginePage.RenderProcessTerminationStatus'
CrashedTerminationStatus = ... # type: 'QWebEnginePage.RenderProcessTerminationStatus'
KilledTerminationStatus = ... # type: 'QWebEnginePage.RenderProcessTerminationStatus'
class NavigationType(int): ...
NavigationTypeLinkClicked = ... # type: 'QWebEnginePage.NavigationType'
NavigationTypeTyped = ... # type: 'QWebEnginePage.NavigationType'
NavigationTypeFormSubmitted = ... # type: 'QWebEnginePage.NavigationType'
NavigationTypeBackForward = ... # type: 'QWebEnginePage.NavigationType'
NavigationTypeReload = ... # type: 'QWebEnginePage.NavigationType'
NavigationTypeOther = ... # type: 'QWebEnginePage.NavigationType'
class JavaScriptConsoleMessageLevel(int): ...
InfoMessageLevel = ... # type: 'QWebEnginePage.JavaScriptConsoleMessageLevel'
WarningMessageLevel = ... # type: 'QWebEnginePage.JavaScriptConsoleMessageLevel'
ErrorMessageLevel = ... # type: 'QWebEnginePage.JavaScriptConsoleMessageLevel'
class FileSelectionMode(int): ...
FileSelectOpen = ... # type: 'QWebEnginePage.FileSelectionMode'
FileSelectOpenMultiple = ... # type: 'QWebEnginePage.FileSelectionMode'
class Feature(int): ...
Geolocation = ... # type: 'QWebEnginePage.Feature'
MediaAudioCapture = ... # type: 'QWebEnginePage.Feature'
MediaVideoCapture = ... # type: 'QWebEnginePage.Feature'
MediaAudioVideoCapture = ... # type: 'QWebEnginePage.Feature'
MouseLock = ... # type: 'QWebEnginePage.Feature'
class PermissionPolicy(int): ...
PermissionUnknown = ... # type: 'QWebEnginePage.PermissionPolicy'
PermissionGrantedByUser = ... # type: 'QWebEnginePage.PermissionPolicy'
PermissionDeniedByUser = ... # type: 'QWebEnginePage.PermissionPolicy'
class WebWindowType(int): ...
WebBrowserWindow = ... # type: 'QWebEnginePage.WebWindowType'
WebBrowserTab = ... # type: 'QWebEnginePage.WebWindowType'
WebDialog = ... # type: 'QWebEnginePage.WebWindowType'
WebBrowserBackgroundTab = ... # type: 'QWebEnginePage.WebWindowType'
class FindFlag(int): ...
FindBackward = ... # type: 'QWebEnginePage.FindFlag'
FindCaseSensitively = ... # type: 'QWebEnginePage.FindFlag'
class WebAction(int): ...
NoWebAction = ... # type: 'QWebEnginePage.WebAction'
Back = ... # type: 'QWebEnginePage.WebAction'
Forward = ... # type: 'QWebEnginePage.WebAction'
Stop = ... # type: 'QWebEnginePage.WebAction'
Reload = ... # type: 'QWebEnginePage.WebAction'
Cut = ... # type: 'QWebEnginePage.WebAction'
Copy = ... # type: 'QWebEnginePage.WebAction'
Paste = ... # type: 'QWebEnginePage.WebAction'
Undo = ... # type: 'QWebEnginePage.WebAction'
Redo = ... # type: 'QWebEnginePage.WebAction'
SelectAll = ... # type: 'QWebEnginePage.WebAction'
ReloadAndBypassCache = ... # type: 'QWebEnginePage.WebAction'
PasteAndMatchStyle = ... # type: 'QWebEnginePage.WebAction'
OpenLinkInThisWindow = ... # type: 'QWebEnginePage.WebAction'
OpenLinkInNewWindow = ... # type: 'QWebEnginePage.WebAction'
OpenLinkInNewTab = ... # type: 'QWebEnginePage.WebAction'
CopyLinkToClipboard = ... # type: 'QWebEnginePage.WebAction'
DownloadLinkToDisk = ... # type: 'QWebEnginePage.WebAction'
CopyImageToClipboard = ... # type: 'QWebEnginePage.WebAction'
CopyImageUrlToClipboard = ... # type: 'QWebEnginePage.WebAction'
DownloadImageToDisk = ... # type: 'QWebEnginePage.WebAction'
CopyMediaUrlToClipboard = ... # type: 'QWebEnginePage.WebAction'
ToggleMediaControls = ... # type: 'QWebEnginePage.WebAction'
ToggleMediaLoop = ... # type: 'QWebEnginePage.WebAction'
ToggleMediaPlayPause = ... # type: 'QWebEnginePage.WebAction'
ToggleMediaMute = ... # type: 'QWebEnginePage.WebAction'
DownloadMediaToDisk = ... # type: 'QWebEnginePage.WebAction'
InspectElement = ... # type: 'QWebEnginePage.WebAction'
ExitFullScreen = ... # type: 'QWebEnginePage.WebAction'
RequestClose = ... # type: 'QWebEnginePage.WebAction'
Unselect = ... # type: 'QWebEnginePage.WebAction'
SavePage = ... # type: 'QWebEnginePage.WebAction'
OpenLinkInNewBackgroundTab = ... # type: 'QWebEnginePage.WebAction'
ViewSource = ... # type: 'QWebEnginePage.WebAction'
class FindFlags(sip.simplewrapper):
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, f: typing.Union['QWebEnginePage.FindFlags', 'QWebEnginePage.FindFlag']) -> None: ...
@typing.overload
def __init__(self, a0: 'QWebEnginePage.FindFlags') -> None: ...
def __hash__(self) -> int: ...
def __bool__(self) -> int: ...
def __invert__(self) -> 'QWebEnginePage.FindFlags': ...
def __int__(self) -> int: ...
@typing.overload
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
@typing.overload
def __init__(self, profile: 'QWebEngineProfile', parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def print(self, printer: QtPrintSupport.QPrinter, resultCallback: typing.Callable[..., None]) -> None: ...
def save(self, filePath: str, format: QWebEngineDownloadItem.SavePageFormat = ...) -> None: ...
def replaceMisspelledWord(self, replacement: str) -> None: ...
def pdfPrintingFinished(self, filePath: str, success: bool) -> None: ...
def recentlyAudibleChanged(self, recentlyAudible: bool) -> None: ...
def audioMutedChanged(self, muted: bool) -> None: ...
def contentsSizeChanged(self, size: QtCore.QSizeF) -> None: ...
def scrollPositionChanged(self, position: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ...
def iconChanged(self, icon: QtGui.QIcon) -> None: ...
def contextMenuData(self) -> QWebEngineContextMenuData: ...
@typing.overload
def printToPdf(self, filePath: str, pageLayout: QtGui.QPageLayout = ...) -> None: ...
@typing.overload
def printToPdf(self, resultCallback: typing.Callable[..., None], pageLayout: QtGui.QPageLayout = ...) -> None: ...
def recentlyAudible(self) -> bool: ...
def setAudioMuted(self, muted: bool) -> None: ...
def isAudioMuted(self) -> bool: ...
def contentsSize(self) -> QtCore.QSizeF: ...
def scrollPosition(self) -> QtCore.QPointF: ...
def icon(self) -> QtGui.QIcon: ...
def renderProcessTerminated(self, terminationStatus: 'QWebEnginePage.RenderProcessTerminationStatus', exitCode: int) -> None: ...
def fullScreenRequested(self, fullScreenRequest: QWebEngineFullScreenRequest) -> None: ...
def setBackgroundColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ...
def backgroundColor(self) -> QtGui.QColor: ...
def acceptNavigationRequest(self, url: QtCore.QUrl, type: 'QWebEnginePage.NavigationType', isMainFrame: bool) -> bool: ...
@typing.overload
def setWebChannel(self, a0: QtWebChannel.QWebChannel) -> None: ...
@typing.overload
def setWebChannel(self, a0: QtWebChannel.QWebChannel, worldId: int) -> None: ...
def webChannel(self) -> QtWebChannel.QWebChannel: ...
def scripts(self) -> 'QWebEngineScriptCollection': ...
def profile(self) -> 'QWebEngineProfile': ...
def certificateError(self, certificateError: QWebEngineCertificateError) -> bool: ...
def javaScriptConsoleMessage(self, level: 'QWebEnginePage.JavaScriptConsoleMessageLevel', message: str, lineNumber: int, sourceID: str) -> None: ...
def javaScriptPrompt(self, securityOrigin: QtCore.QUrl, msg: str, defaultValue: str) -> typing.Tuple[bool, str]: ...
def javaScriptConfirm(self, securityOrigin: QtCore.QUrl, msg: str) -> bool: ...
def javaScriptAlert(self, securityOrigin: QtCore.QUrl, msg: str) -> None: ...
def chooseFiles(self, mode: 'QWebEnginePage.FileSelectionMode', oldFiles: typing.Iterable[str], acceptedMimeTypes: typing.Iterable[str]) -> typing.List[str]: ...
def createWindow(self, type: 'QWebEnginePage.WebWindowType') -> 'QWebEnginePage': ...
def iconUrlChanged(self, url: QtCore.QUrl) -> None: ...
def urlChanged(self, url: QtCore.QUrl) -> None: ...
def titleChanged(self, title: str) -> None: ...
def proxyAuthenticationRequired(self, requestUrl: QtCore.QUrl, authenticator: QtNetwork.QAuthenticator, proxyHost: str) -> None: ...
def authenticationRequired(self, requestUrl: QtCore.QUrl, authenticator: QtNetwork.QAuthenticator) -> None: ...
def featurePermissionRequestCanceled(self, securityOrigin: QtCore.QUrl, feature: 'QWebEnginePage.Feature') -> None: ...
def featurePermissionRequested(self, securityOrigin: QtCore.QUrl, feature: 'QWebEnginePage.Feature') -> None: ...
def windowCloseRequested(self) -> None: ...
def geometryChangeRequested(self, geom: QtCore.QRect) -> None: ...
def selectionChanged(self) -> None: ...
def linkHovered(self, url: str) -> None: ...
def loadFinished(self, ok: bool) -> None: ...
def loadProgress(self, progress: int) -> None: ...
def loadStarted(self) -> None: ...
def settings(self) -> 'QWebEngineSettings': ...
@typing.overload
def runJavaScript(self, scriptSource: str, worldId: int) -> None: ...
@typing.overload
def runJavaScript(self, scriptSource: str, worldId: int, resultCallback: typing.Callable[..., None]) -> None: ...
@typing.overload
def runJavaScript(self, scriptSource: str) -> None: ...
@typing.overload
def runJavaScript(self, scriptSource: str, resultCallback: typing.Callable[..., None]) -> None: ...
def setZoomFactor(self, factor: float) -> None: ...
def zoomFactor(self) -> float: ...
def iconUrl(self) -> QtCore.QUrl: ...
def requestedUrl(self) -> QtCore.QUrl: ...
def url(self) -> QtCore.QUrl: ...
def setUrl(self, url: QtCore.QUrl) -> None: ...
def title(self) -> str: ...
def toPlainText(self, resultCallback: typing.Callable[..., None]) -> None: ...
def toHtml(self, resultCallback: typing.Callable[..., None]) -> None: ...
def setContent(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray], mimeType: str = ..., baseUrl: QtCore.QUrl = ...) -> None: ...
def setHtml(self, html: str, baseUrl: QtCore.QUrl = ...) -> None: ...
@typing.overload
def load(self, url: QtCore.QUrl) -> None: ...
@typing.overload
def load(self, request: QtWebEngineCore.QWebEngineHttpRequest) -> None: ...
def setFeaturePermission(self, securityOrigin: QtCore.QUrl, feature: 'QWebEnginePage.Feature', policy: 'QWebEnginePage.PermissionPolicy') -> None: ...
def createStandardContextMenu(self) -> QtWidgets.QMenu: ...
def findText(self, subString: str, options: 'QWebEnginePage.FindFlags' = ..., resultCallback: typing.Optional[typing.Callable[..., None]] = ...) -> None: ...
def event(self, a0: QtCore.QEvent) -> bool: ...
def triggerAction(self, action: 'QWebEnginePage.WebAction', checked: bool = ...) -> None: ...
def action(self, action: 'QWebEnginePage.WebAction') -> QtWidgets.QAction: ...
def selectedText(self) -> str: ...
def hasSelection(self) -> bool: ...
def view(self) -> QtWidgets.QWidget: ...
def setView(self, view: QtWidgets.QWidget) -> None: ...
def history(self) -> QWebEngineHistory: ...
class QWebEngineProfile(QtCore.QObject):
class PersistentCookiesPolicy(int): ...
NoPersistentCookies = ... # type: 'QWebEngineProfile.PersistentCookiesPolicy'
AllowPersistentCookies = ... # type: 'QWebEngineProfile.PersistentCookiesPolicy'
ForcePersistentCookies = ... # type: 'QWebEngineProfile.PersistentCookiesPolicy'
class HttpCacheType(int): ...
MemoryHttpCache = ... # type: 'QWebEngineProfile.HttpCacheType'
DiskHttpCache = ... # type: 'QWebEngineProfile.HttpCacheType'
NoCache = ... # type: 'QWebEngineProfile.HttpCacheType'
@typing.overload
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
@typing.overload
def __init__(self, name: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
def isSpellCheckEnabled(self) -> bool: ...
def setSpellCheckEnabled(self, enabled: bool) -> None: ...
def spellCheckLanguages(self) -> typing.List[str]: ...
def setSpellCheckLanguages(self, languages: typing.Iterable[str]) -> None: ...
def clearHttpCache(self) -> None: ...
def removeAllUrlSchemeHandlers(self) -> None: ...
def removeUrlSchemeHandler(self, a0: QtWebEngineCore.QWebEngineUrlSchemeHandler) -> None: ...
def removeUrlScheme(self, scheme: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ...
def installUrlSchemeHandler(self, scheme: typing.Union[QtCore.QByteArray, bytes, bytearray], a1: QtWebEngineCore.QWebEngineUrlSchemeHandler) -> None: ...
def urlSchemeHandler(self, a0: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> QtWebEngineCore.QWebEngineUrlSchemeHandler: ...
def setRequestInterceptor(self, interceptor: QtWebEngineCore.QWebEngineUrlRequestInterceptor) -> None: ...
def cookieStore(self) -> QtWebEngineCore.QWebEngineCookieStore: ...
def httpAcceptLanguage(self) -> str: ...
def setHttpAcceptLanguage(self, httpAcceptLanguage: str) -> None: ...
def downloadRequested(self, download: QWebEngineDownloadItem) -> None: ...
@staticmethod
def defaultProfile() -> 'QWebEngineProfile': ...
def scripts(self) -> 'QWebEngineScriptCollection': ...
def settings(self) -> 'QWebEngineSettings': ...
def visitedLinksContainsUrl(self, url: QtCore.QUrl) -> bool: ...
def clearVisitedLinks(self, urls: typing.Iterable[QtCore.QUrl]) -> None: ...
def clearAllVisitedLinks(self) -> None: ...
def setHttpCacheMaximumSize(self, maxSize: int) -> None: ...
def httpCacheMaximumSize(self) -> int: ...
def setPersistentCookiesPolicy(self, a0: 'QWebEngineProfile.PersistentCookiesPolicy') -> None: ...
def persistentCookiesPolicy(self) -> 'QWebEngineProfile.PersistentCookiesPolicy': ...
def setHttpCacheType(self, a0: 'QWebEngineProfile.HttpCacheType') -> None: ...
def httpCacheType(self) -> 'QWebEngineProfile.HttpCacheType': ...
def setHttpUserAgent(self, userAgent: str) -> None: ...
def httpUserAgent(self) -> str: ...
def setCachePath(self, path: str) -> None: ...
def cachePath(self) -> str: ...
def setPersistentStoragePath(self, path: str) -> None: ...
def persistentStoragePath(self) -> str: ...
def isOffTheRecord(self) -> bool: ...
def storageName(self) -> str: ...
class QWebEngineScript(sip.simplewrapper):
class ScriptWorldId(int): ...
MainWorld = ... # type: 'QWebEngineScript.ScriptWorldId'
ApplicationWorld = ... # type: 'QWebEngineScript.ScriptWorldId'
UserWorld = ... # type: 'QWebEngineScript.ScriptWorldId'
class InjectionPoint(int): ...
Deferred = ... # type: 'QWebEngineScript.InjectionPoint'
DocumentReady = ... # type: 'QWebEngineScript.InjectionPoint'
DocumentCreation = ... # type: 'QWebEngineScript.InjectionPoint'
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, other: 'QWebEngineScript') -> None: ...
def swap(self, other: 'QWebEngineScript') -> None: ...
def setRunsOnSubFrames(self, on: bool) -> None: ...
def runsOnSubFrames(self) -> bool: ...
def setWorldId(self, a0: int) -> None: ...
def worldId(self) -> int: ...
def setInjectionPoint(self, a0: 'QWebEngineScript.InjectionPoint') -> None: ...
def injectionPoint(self) -> 'QWebEngineScript.InjectionPoint': ...
def setSourceCode(self, a0: str) -> None: ...
def sourceCode(self) -> str: ...
def setName(self, a0: str) -> None: ...
def name(self) -> str: ...
def isNull(self) -> bool: ...
class QWebEngineScriptCollection(sip.simplewrapper):
def toList(self) -> typing.List[QWebEngineScript]: ...
def clear(self) -> None: ...
def remove(self, a0: QWebEngineScript) -> bool: ...
@typing.overload
def insert(self, a0: QWebEngineScript) -> None: ...
@typing.overload
def insert(self, list: typing.Iterable[QWebEngineScript]) -> None: ...
def findScripts(self, name: str) -> typing.Any: ...
def findScript(self, name: str) -> QWebEngineScript: ...
def contains(self, value: QWebEngineScript) -> bool: ...
def __len__(self) -> int: ...
def count(self) -> int: ...
def isEmpty(self) -> bool: ...
class QWebEngineSettings(sip.simplewrapper):
class FontSize(int): ...
MinimumFontSize = ... # type: 'QWebEngineSettings.FontSize'
MinimumLogicalFontSize = ... # type: 'QWebEngineSettings.FontSize'
DefaultFontSize = ... # type: 'QWebEngineSettings.FontSize'
DefaultFixedFontSize = ... # type: 'QWebEngineSettings.FontSize'
class WebAttribute(int): ...
AutoLoadImages = ... # type: 'QWebEngineSettings.WebAttribute'
JavascriptEnabled = ... # type: 'QWebEngineSettings.WebAttribute'
JavascriptCanOpenWindows = ... # type: 'QWebEngineSettings.WebAttribute'
JavascriptCanAccessClipboard = ... # type: 'QWebEngineSettings.WebAttribute'
LinksIncludedInFocusChain = ... # type: 'QWebEngineSettings.WebAttribute'
LocalStorageEnabled = ... # type: 'QWebEngineSettings.WebAttribute'
LocalContentCanAccessRemoteUrls = ... # type: 'QWebEngineSettings.WebAttribute'
XSSAuditingEnabled = ... # type: 'QWebEngineSettings.WebAttribute'
SpatialNavigationEnabled = ... # type: 'QWebEngineSettings.WebAttribute'
LocalContentCanAccessFileUrls = ... # type: 'QWebEngineSettings.WebAttribute'
HyperlinkAuditingEnabled = ... # type: 'QWebEngineSettings.WebAttribute'
ScrollAnimatorEnabled = ... # type: 'QWebEngineSettings.WebAttribute'
ErrorPageEnabled = ... # type: 'QWebEngineSettings.WebAttribute'
PluginsEnabled = ... # type: 'QWebEngineSettings.WebAttribute'
FullScreenSupportEnabled = ... # type: 'QWebEngineSettings.WebAttribute'
ScreenCaptureEnabled = ... # type: 'QWebEngineSettings.WebAttribute'
WebGLEnabled = ... # type: 'QWebEngineSettings.WebAttribute'
Accelerated2dCanvasEnabled = ... # type: 'QWebEngineSettings.WebAttribute'
AutoLoadIconsForPage = ... # type: 'QWebEngineSettings.WebAttribute'
TouchIconsEnabled = ... # type: 'QWebEngineSettings.WebAttribute'
FocusOnNavigationEnabled = ... # type: 'QWebEngineSettings.WebAttribute'
PrintElementBackgrounds = ... # type: 'QWebEngineSettings.WebAttribute'
AllowRunningInsecureContent = ... # type: 'QWebEngineSettings.WebAttribute'
AllowGeolocationOnInsecureOrigins = ... # type: 'QWebEngineSettings.WebAttribute'
class FontFamily(int): ...
StandardFont = ... # type: 'QWebEngineSettings.FontFamily'
FixedFont = ... # type: 'QWebEngineSettings.FontFamily'
SerifFont = ... # type: 'QWebEngineSettings.FontFamily'
SansSerifFont = ... # type: 'QWebEngineSettings.FontFamily'
CursiveFont = ... # type: 'QWebEngineSettings.FontFamily'
FantasyFont = ... # type: 'QWebEngineSettings.FontFamily'
PictographFont = ... # type: 'QWebEngineSettings.FontFamily'
def defaultTextEncoding(self) -> str: ...
def setDefaultTextEncoding(self, encoding: str) -> None: ...
def resetAttribute(self, attr: 'QWebEngineSettings.WebAttribute') -> None: ...
def testAttribute(self, attr: 'QWebEngineSettings.WebAttribute') -> bool: ...
def setAttribute(self, attr: 'QWebEngineSettings.WebAttribute', on: bool) -> None: ...
def resetFontSize(self, type: 'QWebEngineSettings.FontSize') -> None: ...
def fontSize(self, type: 'QWebEngineSettings.FontSize') -> int: ...
def setFontSize(self, type: 'QWebEngineSettings.FontSize', size: int) -> None: ...
def resetFontFamily(self, which: 'QWebEngineSettings.FontFamily') -> None: ...
def fontFamily(self, which: 'QWebEngineSettings.FontFamily') -> str: ...
def setFontFamily(self, which: 'QWebEngineSettings.FontFamily', family: str) -> None: ...
@staticmethod
def globalSettings() -> 'QWebEngineSettings': ...
@staticmethod
def defaultSettings() -> 'QWebEngineSettings': ...
class QWebEngineView(QtWidgets.QWidget):
def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
def dropEvent(self, e: QtGui.QDropEvent) -> None: ...
def dragMoveEvent(self, e: QtGui.QDragMoveEvent) -> None: ...
def dragLeaveEvent(self, e: QtGui.QDragLeaveEvent) -> None: ...
def dragEnterEvent(self, e: QtGui.QDragEnterEvent) -> None: ...
def iconChanged(self, a0: QtGui.QIcon) -> None: ...
def icon(self) -> QtGui.QIcon: ...
def hideEvent(self, a0: QtGui.QHideEvent) -> None: ...
def showEvent(self, a0: QtGui.QShowEvent) -> None: ...
def event(self, a0: QtCore.QEvent) -> bool: ...
def contextMenuEvent(self, a0: QtGui.QContextMenuEvent) -> None: ...
def createWindow(self, type: QWebEnginePage.WebWindowType) -> 'QWebEngineView': ...
def renderProcessTerminated(self, terminationStatus: QWebEnginePage.RenderProcessTerminationStatus, exitCode: int) -> None: ...
def iconUrlChanged(self, a0: QtCore.QUrl) -> None: ...
def urlChanged(self, a0: QtCore.QUrl) -> None: ...
def selectionChanged(self) -> None: ...
def titleChanged(self, title: str) -> None: ...
def loadFinished(self, a0: bool) -> None: ...
def loadProgress(self, progress: int) -> None: ...
def loadStarted(self) -> None: ...
def reload(self) -> None: ...
def forward(self) -> None: ...
def back(self) -> None: ...
def stop(self) -> None: ...
def settings(self) -> QWebEngineSettings: ...
def sizeHint(self) -> QtCore.QSize: ...
def findText(self, subString: str, options: QWebEnginePage.FindFlags = ..., resultCallback: typing.Optional[typing.Callable[..., None]] = ...) -> None: ...
def setZoomFactor(self, factor: float) -> None: ...
def zoomFactor(self) -> float: ...
def triggerPageAction(self, action: QWebEnginePage.WebAction, checked: bool = ...) -> None: ...
def pageAction(self, action: QWebEnginePage.WebAction) -> QtWidgets.QAction: ...
def selectedText(self) -> str: ...
def hasSelection(self) -> bool: ...
def iconUrl(self) -> QtCore.QUrl: ...
def url(self) -> QtCore.QUrl: ...
def setUrl(self, url: QtCore.QUrl) -> None: ...
def title(self) -> str: ...
def history(self) -> QWebEngineHistory: ...
def setContent(self, data: typing.Union[QtCore.QByteArray, bytes, bytearray], mimeType: str = ..., baseUrl: QtCore.QUrl = ...) -> None: ...
def setHtml(self, html: str, baseUrl: QtCore.QUrl = ...) -> None: ...
@typing.overload
def load(self, url: QtCore.QUrl) -> None: ...
@typing.overload
def load(self, request: QtWebEngineCore.QWebEngineHttpRequest) -> None: ...
def setPage(self, page: QWebEnginePage) -> None: ...
def page(self) -> QWebEnginePage: ...
|