eric6/WebBrowser/Download/DownloadManager.py

changeset 8218
7c09585bd960
parent 8217
385f60c94548
child 8235
78e6d29eb773
equal deleted inserted replaced
8217:385f60c94548 8218:7c09585bd960
50 """ 50 """
51 Constructor 51 Constructor
52 52
53 @param parent reference to the parent widget (QWidget) 53 @param parent reference to the parent widget (QWidget)
54 """ 54 """
55 super(DownloadManager, self).__init__(parent) 55 super().__init__(parent)
56 self.setupUi(self) 56 self.setupUi(self)
57 self.setWindowFlags(Qt.WindowType.Window) 57 self.setWindowFlags(Qt.WindowType.Window)
58 58
59 self.__winTaskbarButton = None 59 self.__winTaskbarButton = None
60 60
288 """ 288 """
289 Public slot to show the download manager dialog. 289 Public slot to show the download manager dialog.
290 """ 290 """
291 self.__startUpdateTimer() 291 self.__startUpdateTimer()
292 292
293 super(DownloadManager, self).show() 293 super().show()
294 self.activateWindow() 294 self.activateWindow()
295 self.raise_() 295 self.raise_()
296 296
297 def __addItem(self, itm, append=False): 297 def __addItem(self, itm, append=False):
298 """ 298 """
631 631
632 if Globals.isWindowsPlatform(): 632 if Globals.isWindowsPlatform():
633 self.__taskbarButton().progress().show() 633 self.__taskbarButton().progress().show()
634 self.__taskbarButton().progress().setValue(progress) 634 self.__taskbarButton().progress().setValue(progress)
635 635
636 super(DownloadManager, self).timerEvent(evt) 636 super().timerEvent(evt)
637 637
638 def __startUpdateTimer(self): 638 def __startUpdateTimer(self):
639 """ 639 """
640 Private slot to start the update timer. 640 Private slot to start the update timer.
641 """ 641 """

eric ide

mercurial