Sat, 10 Oct 2020 12:20:51 +0200
Optimized the use of Waiting Cursors by using a specialized context manager class.
# -*- coding: utf-8 -*- # Copyright (c) 2015 - 2020 Detlev Offenbach <detlev@die-offenbachs.de> # """ Module implementing the Flash cookie class. """ from PyQt5.QtCore import QDateTime class FlashCookie(object): """ Class implementing the Flash cookie. """ def __init__(self): """ Constructor """ self.name = "" self.origin = "" self.size = 0 self.path = "" self.contents = "" self.lastModified = QDateTime() def __eq__(self, other): """ Special method to compare to another Flash cookie. @param other reference to the other Flash cookie @type FlashCookie @return flag indicating equality of the two cookies @rtype bool """ return (self.name == other.name and self.path == other.path)