Templates/TemplateMultipleVariablesDialog.py

branch
Py2 comp.
changeset 3060
5883ce99ee12
parent 3057
10516539f238
parent 3034
7ce719013078
child 3145
a9de05d4a22f
equal deleted inserted replaced
3058:0a02c433f52d 3060:5883ce99ee12
54 54
55 # populate the scrollarea with labels and text edits 55 # populate the scrollarea with labels and text edits
56 self.variablesEntries = {} 56 self.variablesEntries = {}
57 row = 0 57 row = 0
58 for var in variables: 58 for var in variables:
59 l = QLabel("{0}:".format(var), self.top) 59 label = QLabel("{0}:".format(var), self.top)
60 self.grid.addWidget(l, row, 0, Qt.Alignment(Qt.AlignTop)) 60 self.grid.addWidget(label, row, 0, Qt.Alignment(Qt.AlignTop))
61 if var.find(":") >= 0: 61 if var.find(":") >= 0:
62 formatStr = var[1:-1].split(":")[1] 62 formatStr = var[1:-1].split(":")[1]
63 if formatStr in ["ml", "rl"]: 63 if formatStr in ["ml", "rl"]:
64 t = QTextEdit(self.top) 64 t = QTextEdit(self.top)
65 t.setTabChangesFocus(True) 65 t.setTabChangesFocus(True)

eric ide

mercurial