Helpviewer/Bookmarks/BookmarksDialog.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2403
e3d7a861547c
child 3057
10516539f238
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing a dialog to manage bookmarks. 7 Module implementing a dialog to manage bookmarks.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
9 11
10 from PyQt4.QtCore import pyqtSignal, Qt, QUrl, QModelIndex 12 from PyQt4.QtCore import pyqtSignal, Qt, QUrl, QModelIndex
11 from PyQt4.QtGui import QDialog, QFontMetrics, QMenu, QCursor, QApplication 13 from PyQt4.QtGui import QDialog, QFontMetrics, QMenu, QCursor, QApplication
12 14
13 from E5Gui.E5TreeSortFilterProxyModel import E5TreeSortFilterProxyModel 15 from E5Gui.E5TreeSortFilterProxyModel import E5TreeSortFilterProxyModel
30 Constructor 32 Constructor
31 33
32 @param parent reference to the parent widget (QWidget 34 @param parent reference to the parent widget (QWidget
33 @param manager reference to the bookmarks manager object (BookmarksManager) 35 @param manager reference to the bookmarks manager object (BookmarksManager)
34 """ 36 """
35 super().__init__(parent) 37 super(BookmarksDialog, self).__init__(parent)
36 self.setupUi(self) 38 self.setupUi(self)
37 39
38 self.__bookmarksManager = manager 40 self.__bookmarksManager = manager
39 if self.__bookmarksManager is None: 41 if self.__bookmarksManager is None:
40 import Helpviewer.HelpWindow 42 import Helpviewer.HelpWindow
75 def reject(self): 77 def reject(self):
76 """ 78 """
77 Protected method called when the dialog is rejected. 79 Protected method called when the dialog is rejected.
78 """ 80 """
79 self.__shutdown() 81 self.__shutdown()
80 super().reject() 82 super(BookmarksDialog, self).reject()
81 83
82 def __shutdown(self): 84 def __shutdown(self):
83 """ 85 """
84 Private method to perform shutdown actions for the dialog. 86 Private method to perform shutdown actions for the dialog.
85 """ 87 """

eric ide

mercurial