4 # |
4 # |
5 |
5 |
6 """ |
6 """ |
7 Module implementing a dialog to show some information about a site. |
7 Module implementing a dialog to show some information about a site. |
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, QUrl, Qt, QFile, qVersion |
14 from PyQt4.QtCore import pyqtSlot, QUrl, Qt, QFile, qVersion |
13 from PyQt4.QtGui import QDialog, QTreeWidgetItem, QPixmap, QGraphicsScene, QMenu, \ |
15 from PyQt4.QtGui import QDialog, QTreeWidgetItem, QPixmap, QGraphicsScene, QMenu, \ |
40 Constructor |
42 Constructor |
41 |
43 |
42 @param browser reference to the browser window (HelpBrowser) |
44 @param browser reference to the browser window (HelpBrowser) |
43 @param parent reference to the parent widget (QWidget) |
45 @param parent reference to the parent widget (QWidget) |
44 """ |
46 """ |
45 super().__init__(parent) |
47 super(SiteInfoDialog, self).__init__(parent) |
46 self.setupUi(self) |
48 self.setupUi(self) |
47 |
49 |
48 # put icons |
50 # put icons |
49 self.tabWidget.setTabIcon(0, UI.PixmapCache.getIcon("siteinfo-general.png")) |
51 self.tabWidget.setTabIcon(0, UI.PixmapCache.getIcon("siteinfo-general.png")) |
50 self.tabWidget.setTabIcon(1, UI.PixmapCache.getIcon("siteinfo-media.png")) |
52 self.tabWidget.setTabIcon(1, UI.PixmapCache.getIcon("siteinfo-media.png")) |