vdat.gui.help_window – The offline help window¶
-
class
vdat.gui.help_window.HelpBrowser(help_engine, parent=None)[source]¶ Bases:
PyQt5.QtWidgets.QTextBrowserCustom
QTextBrowserthat can deal with documentation and external linksCustom slot¶ Name Signature Description setSource()PyQt5.QtCore.QUrlif the input url is http/https opens in the default internet browser, other wise pass it further Parameters: - help_engine :
PyQt5.QtHelp.QHelpEngine help engine containing the documentation
- help_engine :
-
class
vdat.gui.help_window.HelpWidget(parent=None)[source]¶ Bases:
PyQt5.QtWidgets.QWidgetCreate a widget containing the offline help.
Custom slot¶ Name Signature Description expand_and_set()show the first page of the documentation and expand the first level of the content on_click_content()PyQt5.QtCore.QModelIndexExtract the url of the selected item and send it to HelpBrowserfor displayingConnections between custom signals and/or slots¶ Signal Slot PyQt5.QtHelp.QHelpContentModel.contentsCreatedexpand_and_set()PyQt5.QtHelp.QHelpContentWidget.clickedon_click_content()PyQt5.QtHelp.QHelpIndexWidget.linkActivatedHelpBrowser.setSource()Parameters: - parent :
PyQt5.QtWidgets.QWidgetinstance parent of the menu’ bar
-
expand_and_set()[source]¶ Custom slot: it gets the index of the first element, set it as first page in the help browser and expand the sections below it.
-
on_click_content(index)[source]¶ Custom slot: receive the clicked index in the content tree, get the underlying url and send it to the
HelpBrowserParameters: - index :
PyQt5.QtCore.QModelIndex index of the selected item
- index :
- parent :