PageRenderTime 253ms CodeModel.GetById 111ms app.highlight 1ms RepoModel.GetById 140ms app.codeStats 0ms

/pyjs/tests/test029.py

http://pyjamas.googlecode.com/
Python | 7 lines | 6 code | 1 blank | 0 comment | 2 complexity | 7ea5d0feeaefaf532fe502f7eb8d4579 MD5 | raw file
1class DynaTableWidget:
2        
3    def initTable(self, columns, columnStyles, rowCount):
4        self.grid.resize(rowCount + 1, len(columns))
5        for i in range(len(columns)):
6            caption = columns[i]
7            self.grid.setText(0, i, columns[i])