|
pycrossword
0.3
Pure-Python implementation of a crossword puzzle generator and editor
|
Tab widget container for individual web pages placed in tabs (like most browsers). More...
Public Member Functions | |
| def | __init__ (self, QtWebEngineWidgets.QWebEngineProfile profile, parent=None) |
| def | currentWebView (self) |
| def | webView (self, index) |
| Gets a web view by tab position (index). More... | |
| def | navigate (self, url, newtab=True, background=False) |
| Navigates to the specified URL. More... | |
| def | setupView (self, webView) |
| Connects the signals emitted by the given web view to this object. More... | |
| def | createTab (self) |
| Creates a new tab in foreground. More... | |
| def | createBackgroundTab (self) |
| Creates a new tab in background. More... | |
| def | reloadAllTabs (self) |
| Reloads all the tabs (web pages). More... | |
| def | closeOtherTabs (self, index) |
| Closes down all tabs except the one indicated. More... | |
| def | closeTab (self, index) |
| Closes down the indicated tab (web page). More... | |
| def | cloneTab (self, index) |
| Clones (duplicates) the indicated tab. More... | |
| def | setUrl (self, url) |
| Navigates to the given URL in the active tab (overrides parent method) More... | |
| def | triggerWebPageAction (self, action) |
| Triggers a web action on the active tab. More... | |
| def | nextTab (self) |
| Switches to the next tab (one after the active one). More... | |
| def | previousTab (self) |
| Switches to the previous tab (one before the active one). More... | |
| def | reloadTab (self, index) |
| Reloads the specified tab. More... | |
| def | on_currentChanged (self, index) |
| Handler called when the active tab has changed to another one. More... | |
| def | on_customContextMenuRequested (self, pos) |
| Handler called when the context menu is called. More... | |
Public Attributes | |
| m_profile | |
QtWebEngineWidgets.QWebEngineProfile web profile used More... | |
| icon | |
QtWidgets.QLabel favicon image on tab More... | |
Static Public Attributes | |
| linkHovered = QtCore.pyqtSignal(str) | |
| link hovered signal More... | |
| loadProgress = QtCore.pyqtSignal(int) | |
| load progress signal More... | |
| titleChanged = QtCore.pyqtSignal(str) | |
| page title changed signal More... | |
| urlChanged = QtCore.pyqtSignal(QtCore.QUrl) | |
| URL changed signal. More... | |
| favIconChanged = QtCore.pyqtSignal(QtGui.QIcon) | |
| favicon changed signal More... | |
| webActionEnabledChanged = QtCore.pyqtSignal(QtWebEngineWidgets.QWebEnginePage.WebAction, bool) | |
| web action changed signal More... | |
| devToolsRequested = QtCore.pyqtSignal(QtWebEngineWidgets.QWebEnginePage) | |
| development tools requested signal More... | |
| findTextFinished = QtCore.pyqtSignal(QtWebEngineCore.QWebEngineFindTextResult) | |
| page search completed signal More... | |
Tab widget container for individual web pages placed in tabs (like most browsers).
This may be called a boiler plate for a full web browser (only lacking the common web controls and main menu).
| def pycross.browser.TabWidget.__init__ | ( | self, | |
| QtWebEngineWidgets.QWebEngineProfile | profile, | ||
parent = None |
|||
| ) |
| profile | QtWebEngineWidgets.QWebEngineProfile web profile used |
| parent | QtWidget.QWidget parent widget (BrowserWindow) |
| def pycross.browser.TabWidget.cloneTab | ( | self, | |
| index | |||
| ) |
Clones (duplicates) the indicated tab.
| index | tab index of the tab to clone |
| def pycross.browser.TabWidget.closeOtherTabs | ( | self, | |
| index | |||
| ) |
Closes down all tabs except the one indicated.
| index | tab index of the tab that must remain open |
| def pycross.browser.TabWidget.closeTab | ( | self, | |
| index | |||
| ) |
Closes down the indicated tab (web page).
| index | tab index of the tab to close |
| def pycross.browser.TabWidget.createBackgroundTab | ( | self | ) |
Creates a new tab in background.
WebView pointer to the active web view | def pycross.browser.TabWidget.createTab | ( | self | ) |
Creates a new tab in foreground.
WebView pointer to the active web view | def pycross.browser.TabWidget.currentWebView | ( | self | ) |
WebView pointer to the active web view | def pycross.browser.TabWidget.navigate | ( | self, | |
| url, | |||
newtab = True, |
|||
background = False |
|||
| ) |
Navigates to the specified URL.
| url | QtCore.QUrl|str URL of the address to navigate to |
| newtab | bool whether to open the URL in a new tab (True) or in the active tab (False) |
| background | bool whether to navigate in background mode |
| def pycross.browser.TabWidget.nextTab | ( | self | ) |
Switches to the next tab (one after the active one).
| def pycross.browser.TabWidget.on_currentChanged | ( | self, | |
| index | |||
| ) |
Handler called when the active tab has changed to another one.
| index | tab index of the activated tab |
| def pycross.browser.TabWidget.on_customContextMenuRequested | ( | self, | |
| pos | |||
| ) |
Handler called when the context menu is called.
| pos | QtCore.QPoint global position of the cursor |
| def pycross.browser.TabWidget.previousTab | ( | self | ) |
Switches to the previous tab (one before the active one).
| def pycross.browser.TabWidget.reloadAllTabs | ( | self | ) |
Reloads all the tabs (web pages).
| def pycross.browser.TabWidget.reloadTab | ( | self, | |
| index | |||
| ) |
Reloads the specified tab.
| index | tab index of the tab to reload |
| def pycross.browser.TabWidget.setupView | ( | self, | |
| webView | |||
| ) |
Connects the signals emitted by the given web view to this object.
| webView | WebView pointer to a web view (tab contents) |
| def pycross.browser.TabWidget.setUrl | ( | self, | |
| url | |||
| ) |
Navigates to the given URL in the active tab (overrides parent method)
| url | QtCore.QUrl new URL to navigate to |
| def pycross.browser.TabWidget.triggerWebPageAction | ( | self, | |
| action | |||
| ) |
Triggers a web action on the active tab.
| action | QtWebEngineWidgets.QWebEnginePage.WebAction web action to trigger |
| def pycross.browser.TabWidget.webView | ( | self, | |
| index | |||
| ) |
Gets a web view by tab position (index).
| index | int tab index (0...) |
WebView pointer to the web view located in tab index
|
static |
development tools requested signal
|
static |
favicon changed signal
|
static |
page search completed signal
| pycross.browser.TabWidget.icon |
QtWidgets.QLabel favicon image on tab
|
static |
link hovered signal
|
static |
load progress signal
| pycross.browser.TabWidget.m_profile |
QtWebEngineWidgets.QWebEngineProfile web profile used
|
static |
page title changed signal
|
static |
URL changed signal.
|
static |
web action changed signal
1.8.17