4 # |
4 # |
5 |
5 |
6 """ |
6 """ |
7 Module implementing a dialog to select the template type. |
7 Module implementing a dialog to select the template type. |
8 """ |
8 """ |
|
9 |
|
10 from __future__ import unicode_literals # __IGNORE_WARNING__ |
9 |
11 |
10 from PyQt4.QtCore import pyqtSlot |
12 from PyQt4.QtCore import pyqtSlot |
11 from PyQt4.QtGui import QDialog, QDialogButtonBox |
13 from PyQt4.QtGui import QDialog, QDialogButtonBox |
12 |
14 |
13 from .Ui_FormSelectionDialog import Ui_FormSelectionDialog |
15 from .Ui_FormSelectionDialog import Ui_FormSelectionDialog |
21 """ |
23 """ |
22 Constructor |
24 Constructor |
23 |
25 |
24 @param parent reference to the parent widget (QWidget) |
26 @param parent reference to the parent widget (QWidget) |
25 """ |
27 """ |
26 super().__init__(parent) |
28 super(FormSelectionDialog, self).__init__(parent) |
27 self.setupUi(self) |
29 self.setupUi(self) |
28 |
30 |
29 self.__templates = { |
31 self.__templates = { |
30 "html5": [self.trUtf8("Standard HTML 5 template"), |
32 "html5": [self.trUtf8("Standard HTML 5 template"), |
31 '''<!DOCTYPE html>\n''' |
33 '''<!DOCTYPE html>\n''' |