Helpviewer/Bookmarks/BookmarksImportDialog.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2302
f29e9405c851
child 3057
10516539f238
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing a dialog for importing bookmarks from other sources. 7 Module implementing a dialog for importing bookmarks from other sources.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
9 11
10 import os 12 import os
11 13
12 from PyQt4.QtCore import pyqtSlot, Qt, QSize 14 from PyQt4.QtCore import pyqtSlot, Qt, QSize
13 from PyQt4.QtGui import QDialog, QListWidgetItem 15 from PyQt4.QtGui import QDialog, QListWidgetItem
32 """ 34 """
33 Constructor 35 Constructor
34 36
35 @param parent reference to the parent widget (QWidget) 37 @param parent reference to the parent widget (QWidget)
36 """ 38 """
37 super().__init__(parent) 39 super(BookmarksImportDialog, self).__init__(parent)
38 self.setupUi(self) 40 self.setupUi(self)
39 41
40 self.sourcesList.setIconSize(QSize(48, 48)) 42 self.sourcesList.setIconSize(QSize(48, 48))
41 for icon, displayText, idText in BookmarksImporters.getImporters(): 43 for icon, displayText, idText in BookmarksImporters.getImporters():
42 itm = QListWidgetItem(icon, displayText, self.sourcesList) 44 itm = QListWidgetItem(icon, displayText, self.sourcesList)

eric ide

mercurial