Templates/TemplateMultipleVariablesDialog.py

changeset 3034
7ce719013078
parent 2997
7f0ef975da9e
child 3060
5883ce99ee12
child 3160
209a07d7e401
equal deleted inserted replaced
3033:58fe260e7469 3034:7ce719013078
52 52
53 # populate the scrollarea with labels and text edits 53 # populate the scrollarea with labels and text edits
54 self.variablesEntries = {} 54 self.variablesEntries = {}
55 row = 0 55 row = 0
56 for var in variables: 56 for var in variables:
57 l = QLabel("{0}:".format(var), self.top) 57 label = QLabel("{0}:".format(var), self.top)
58 self.grid.addWidget(l, row, 0, Qt.Alignment(Qt.AlignTop)) 58 self.grid.addWidget(label, row, 0, Qt.Alignment(Qt.AlignTop))
59 if var.find(":") >= 0: 59 if var.find(":") >= 0:
60 formatStr = var[1:-1].split(":")[1] 60 formatStr = var[1:-1].split(":")[1]
61 if formatStr in ["ml", "rl"]: 61 if formatStr in ["ml", "rl"]:
62 t = QTextEdit(self.top) 62 t = QTextEdit(self.top)
63 t.setTabChangesFocus(True) 63 t.setTabChangesFocus(True)

eric ide

mercurial