Templates/TemplateMultipleVariablesDialog.py

branch
Py2 comp.
changeset 3484
645c12de6b0c
parent 3178
f25fc1364c88
parent 3345
071afe8be2a1
child 3656
441956d8fce5
equal deleted inserted replaced
3456:96232974dcdb 3484:645c12de6b0c
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

eric ide

mercurial