Answer the question
In order to leave comments, you need to log in
How to convert multidimensional list to html table for QTextEdit?
Python 3. PyQt4
There are multidimensional lists like:
d =
def on_click_7(self):
def aps(i):
i = ''.join(map(str, i))
data.append(str(i))
data = []
self.pole_vivod.clear() # очистка поля вывода
aps(['<table>'])
for i in range(len(d)):
for j in range(len(d[i])):
j = '<td>'+str(j)+'<\td>'
i = '<tr>'+str(i)+'<\tr>'
aps([d])
aps(['</table>'])
print('<hr>')
for i in data:
self.pole_vivod.append(str(i))
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question