4 # |
4 # |
5 |
5 |
6 """ |
6 """ |
7 Module implementing a dialog for entering multiple template variables. |
7 Module implementing a dialog for entering multiple template variables. |
8 """ |
8 """ |
|
9 |
|
10 from __future__ import unicode_literals # __IGNORE_WARNING__ |
9 |
11 |
10 from PyQt4.QtCore import QSize, Qt |
12 from PyQt4.QtCore import QSize, Qt |
11 from PyQt4.QtGui import QSizePolicy, QSpacerItem, QWidget, QHBoxLayout, QLineEdit, \ |
13 from PyQt4.QtGui import QSizePolicy, QSpacerItem, QWidget, QHBoxLayout, QLineEdit, \ |
12 QPushButton, QTextEdit, QDialog, QScrollArea, QFrame, QGridLayout, QVBoxLayout, QLabel |
14 QPushButton, QTextEdit, QDialog, QScrollArea, QFrame, QGridLayout, QVBoxLayout, QLabel |
13 |
15 |
21 Constructor |
23 Constructor |
22 |
24 |
23 @param variables list of template variable names (list of strings) |
25 @param variables list of template variable names (list of strings) |
24 @param parent parent widget of this dialog (QWidget) |
26 @param parent parent widget of this dialog (QWidget) |
25 """ |
27 """ |
26 super().__init__(parent) |
28 super(TemplateMultipleVariablesDialog, self).__init__(parent) |
27 |
29 |
28 self.TemplateMultipleVariablesDialogLayout = QVBoxLayout(self) |
30 self.TemplateMultipleVariablesDialogLayout = QVBoxLayout(self) |
29 self.TemplateMultipleVariablesDialogLayout.setMargin(6) |
31 self.TemplateMultipleVariablesDialogLayout.setMargin(6) |
30 self.TemplateMultipleVariablesDialogLayout.setSpacing(6) |
32 self.TemplateMultipleVariablesDialogLayout.setSpacing(6) |
31 self.TemplateMultipleVariablesDialogLayout.setObjectName( |
33 self.TemplateMultipleVariablesDialogLayout.setObjectName( |