Skip to content

HelpSearchResultWidget

Base classes

Name Children Inherits
WidgetMixin
prettyqt.widgets.widget

⋔ Inheritance diagram

graph TD
  1473572357936["qthelp.HelpSearchResultWidget"]
  1473293688240["widgets.WidgetMixin"]
  1473299815024["core.ObjectMixin"]
  140713234304496["builtins.object"]
  1473245548480["gui.PaintDeviceMixin"]
  1473293688240 --> 1473572357936
  1473299815024 --> 1473293688240
  140713234304496 --> 1473299815024
  1473245548480 --> 1473293688240
  140713234304496 --> 1473245548480

🛈 DocStrings

Bases: WidgetMixin

Text browser to display search results.

Source code in prettyqt\qthelp\helpsearchresultwidget.py
class HelpSearchResultWidget(widgets.WidgetMixin):  # , qthelp.QHelpSearchResultWidget):
    """Text browser to display search results."""

    def __init__(self, item: qthelp.QHelpSearchResultWidget):
        self.item = item

    def __getattr__(self, val):
        return getattr(self.item, val)

    @classmethod
    def setup_example(self):
        core_engine = qthelp.HelpEngineCore("test")
        engine = qthelp.HelpSearchEngine(core_engine)
        widget = engine.get_result_widget()
        widget.engine = engine
        widget.core_engine = core_engine
        return widget

    def get_link_at(self, point: datatypes.PointType) -> core.Url:
        if isinstance(point, tuple):
            point = core.Point(*point)
        return core.Url(self.linkAt(point))

🖼 Screenshot

prettyqt.qthelp.helpsearchresultwidget.HelpSearchResultWidget.setup_example
@classmethod
def setup_example(self):
    core_engine = qthelp.HelpEngineCore("test")
    engine = qthelp.HelpSearchEngine(core_engine)
    widget = engine.get_result_widget()
    widget.engine = engine
    widget.core_engine = core_engine
    return widget

Image title