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

Donwload widget (panel) for a single download item. More...

Inheritance diagram for pycross.browser.DownloadWidget:

Public Member Functions

def __init__ (self, QtWebEngineWidgets.QWebEngineDownloadItem download, parent=None)
 
def on_btn_cancel (self, checked)
 Handler triggered when the Cancel button is clicked. More...
 
def updateWidget (self)
 Updates the download information (labels, progress etc.) More...
 

Public Attributes

 m_download
 QtWebEngineWidgets.QWebEngineDownloadItem the download item More...
 
 m_timeAdded
 QtCore.QElapsedTimer timer to time downloading More...
 
 layout_main
 
 l_filename
 QtWidgets.QLabel downloaded file name More...
 
 btn_cancel
 QtWidgets.QPushButton Cancel button More...
 
 l_url
 QtWidgets.QLabel URL of the download item More...
 
 pb
 QtWidgets.QProgressBar download progress bar More...
 

Static Public Attributes

 removeClicked = QtCore.pyqtSignal(QtWidgets.QFrame)
 signal triggered when the user clicks the Remove button on the download More...
 

Detailed Description

Donwload widget (panel) for a single download item.

Constructor & Destructor Documentation

◆ __init__()

def pycross.browser.DownloadWidget.__init__ (   self,
QtWebEngineWidgets.QWebEngineDownloadItem  download,
  parent = None 
)
Parameters
downloadQtWebEngineWidgets.QWebEngineDownloadItem the download item
parentQtWidget.QWidget parent widget (DownloadManagerWidget)

Member Function Documentation

◆ on_btn_cancel()

def pycross.browser.DownloadWidget.on_btn_cancel (   self,
  checked 
)

Handler triggered when the Cancel button is clicked.

◆ updateWidget()

def pycross.browser.DownloadWidget.updateWidget (   self)

Updates the download information (labels, progress etc.)

Member Data Documentation

◆ btn_cancel

pycross.browser.DownloadWidget.btn_cancel

QtWidgets.QPushButton Cancel button

◆ l_filename

pycross.browser.DownloadWidget.l_filename

QtWidgets.QLabel downloaded file name

◆ l_url

pycross.browser.DownloadWidget.l_url

QtWidgets.QLabel URL of the download item

◆ layout_main

pycross.browser.DownloadWidget.layout_main

◆ m_download

pycross.browser.DownloadWidget.m_download

QtWebEngineWidgets.QWebEngineDownloadItem the download item

◆ m_timeAdded

pycross.browser.DownloadWidget.m_timeAdded

QtCore.QElapsedTimer timer to time downloading

◆ pb

pycross.browser.DownloadWidget.pb

QtWidgets.QProgressBar download progress bar

◆ removeClicked

pycross.browser.DownloadWidget.removeClicked = QtCore.pyqtSignal(QtWidgets.QFrame)
static

signal triggered when the user clicks the Remove button on the download


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