Update docstrings
This commit is contained in:
parent
5f2fb2c4fc
commit
e3eda28d88
@ -155,6 +155,8 @@ class AbstractSearch(QObject):
|
|||||||
|
|
||||||
Attributes:
|
Attributes:
|
||||||
text: The last thing this view was searched for.
|
text: The last thing this view was searched for.
|
||||||
|
search_displayed: Whether we're currently displaying search results in
|
||||||
|
this view.
|
||||||
_flags: The flags of the last search (needs to be set by subclasses).
|
_flags: The flags of the last search (needs to be set by subclasses).
|
||||||
_widget: The underlying WebView widget.
|
_widget: The underlying WebView widget.
|
||||||
"""
|
"""
|
||||||
@ -163,7 +165,6 @@ class AbstractSearch(QObject):
|
|||||||
super().__init__(parent)
|
super().__init__(parent)
|
||||||
self._widget = None
|
self._widget = None
|
||||||
self.text = None
|
self.text = None
|
||||||
# Implementing classes will set this.
|
|
||||||
self.search_displayed = False
|
self.search_displayed = False
|
||||||
|
|
||||||
def search(self, text, *, ignore_case=False, reverse=False,
|
def search(self, text, *, ignore_case=False, reverse=False,
|
||||||
|
@ -251,8 +251,8 @@ class WebEngineCaret(browsertab.AbstractCaret):
|
|||||||
"""Callback for javascript which clicks the selected element.
|
"""Callback for javascript which clicks the selected element.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
js_elems: The elements serialized from javascript.
|
js_elem: The element serialized from javascript.
|
||||||
tab: Open in a new tab or not.
|
tab: Open in a new tab.
|
||||||
"""
|
"""
|
||||||
if js_elem is None:
|
if js_elem is None:
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user