pycrossword  0.3
Pure-Python implementation of a crossword puzzle generator and editor
Public Member Functions | Public Attributes | List of all members
pycross.browser.Browser Class Reference

The top-level interface class for the browser: provides a generic manager for individual BrowserWindow objects. More...

Public Member Functions

def __init__ (self)
 
def navigate (self, url, newtab=True, background=False, offTheRecord=False)
 Navigates to a URL in the active or new tab. More...
 
def createWindow (self, offTheRecord=False)
 Creates a new browser window. More...
 
def createDevToolsWindow (self)
 Creates a Developer Tools window. More...
 
def windows (self)
 
def downloadManagerWidget (self)
 

Public Attributes

 m_otrProfile
 QtWebEngineWidgets.QWebEngineProfile selected web profile (e.g. More...
 
 m_windows
 list list of currently opened browser windows (BrowserWindow objects) More...
 
 m_downloadManagerWidget
 DownloadManagerWidget the Download Manager (common for all windows) More...
 

Detailed Description

The top-level interface class for the browser: provides a generic manager for individual BrowserWindow objects.

Constructor & Destructor Documentation

◆ __init__()

def pycross.browser.Browser.__init__ (   self)

Member Function Documentation

◆ createDevToolsWindow()

def pycross.browser.Browser.createDevToolsWindow (   self)

Creates a Developer Tools window.

Returns
BrowserWindow new browser window with Developer Tools

◆ createWindow()

def pycross.browser.Browser.createWindow (   self,
  offTheRecord = False 
)

Creates a new browser window.

Parameters
offTheRecordbool mode for the new window: True to open in the Incognito mode (default = False, i.e. normal mode)
Returns
BrowserWindow new browser window

◆ downloadManagerWidget()

def pycross.browser.Browser.downloadManagerWidget (   self)
Returns
DownloadManagerWidget the Download Manager (common for all windows)

◆ navigate()

def pycross.browser.Browser.navigate (   self,
  url,
  newtab = True,
  background = False,
  offTheRecord = False 
)

Navigates to a URL in the active or new tab.

Parameters
urlstr the target URL to browse
newtabbool True to open the page in a new tab; False to open in the current (active) tab
backgroundbool whether to load the page in background (without switching to it)

◆ windows()

def pycross.browser.Browser.windows (   self)
Returns
list list of currently opened browser windows

Member Data Documentation

◆ m_downloadManagerWidget

pycross.browser.Browser.m_downloadManagerWidget

DownloadManagerWidget the Download Manager (common for all windows)

◆ m_otrProfile

pycross.browser.Browser.m_otrProfile

QtWebEngineWidgets.QWebEngineProfile selected web profile (e.g.

Incognito)

◆ m_windows

pycross.browser.Browser.m_windows

list list of currently opened browser windows (BrowserWindow objects)


The documentation for this class was generated from the following file: