101 layout1.addItem(spacer2) |
101 layout1.addItem(spacer2) |
102 |
102 |
103 self.TemplateMultipleVariablesDialogLayout.addLayout(layout1) |
103 self.TemplateMultipleVariablesDialogLayout.addLayout(layout1) |
104 |
104 |
105 # set the texts of the standard widgets |
105 # set the texts of the standard widgets |
106 self.setWindowTitle(self.trUtf8("Enter Template Variables")) |
106 self.setWindowTitle(self.tr("Enter Template Variables")) |
107 self.okButton.setText(self.trUtf8("&OK")) |
107 self.okButton.setText(self.tr("&OK")) |
108 self.cancelButton.setText(self.trUtf8("&Cancel")) |
108 self.cancelButton.setText(self.tr("&Cancel")) |
109 |
109 |
110 # polish up the dialog |
110 # polish up the dialog |
111 self.resize(QSize(400, 480).expandedTo(self.minimumSizeHint())) |
111 self.resize(QSize(400, 480).expandedTo(self.minimumSizeHint())) |
112 |
112 |
113 self.okButton.clicked[()].connect(self.accept) |
113 self.okButton.clicked.connect(self.accept) |
114 self.cancelButton.clicked[()].connect(self.reject) |
114 self.cancelButton.clicked.connect(self.reject) |
115 |
115 |
116 def getVariables(self): |
116 def getVariables(self): |
117 """ |
117 """ |
118 Public method to get the values for all variables. |
118 Public method to get the values for all variables. |
119 |
119 |