Show More
@@ -23,7 +23,7 b' def html_tableify(item_matrix, select=None, header=None , footer=None) :' | |||||
23 | html_cols = [] |
|
23 | html_cols = [] | |
24 | tds = lambda text : u'<td>'+text+u' </td>' |
|
24 | tds = lambda text : u'<td>'+text+u' </td>' | |
25 | trs = lambda text : u'<tr>'+text+u'</tr>' |
|
25 | trs = lambda text : u'<tr>'+text+u'</tr>' | |
26 | tds_items = [map(tds, row) for row in item_matrix] |
|
26 | tds_items = [list(map(tds, row)) for row in item_matrix] | |
27 | if select : |
|
27 | if select : | |
28 | row, col = select |
|
28 | row, col = select | |
29 | tds_items[row][col] = u'<td class="inverted">'\ |
|
29 | tds_items[row][col] = u'<td class="inverted">'\ | |
@@ -315,7 +315,7 b' class CompletionHtml(QtGui.QWidget):' | |||||
315 | self._old_cursor = cursor |
|
315 | self._old_cursor = cursor | |
316 | self._index = (0, 0) |
|
316 | self._index = (0, 0) | |
317 | sjoin = lambda x : [ y.ljust(w, ' ') for y, w in zip(x, ci['columns_width'])] |
|
317 | sjoin = lambda x : [ y.ljust(w, ' ') for y, w in zip(x, ci['columns_width'])] | |
318 | self._justified_items = map(sjoin, items_m) |
|
318 | self._justified_items = list(map(sjoin, items_m)) | |
319 | self._update_list(hilight=False) |
|
319 | self._update_list(hilight=False) | |
320 |
|
320 | |||
321 |
|
321 |
General Comments 0
You need to be logged in to leave comments.
Login now