#!/usr/bin/env python
import sys
import time

import qt
import qttable

def main(args):
    top = 1000
    app = qt.QApplication(args)
    my_table = qttable.QTable(top, 100)
    vheader = my_table.verticalHeader()
    app.setMainWidget(my_table)
    my_table.show()
    # test 1. str()
    t0 = time.time()
    for i in range(0,top):
	    l = i + 100
	    vheader.setLabel(i, str(l))
    t1 = time.time()
    print 'test 1: using str() -->', t1 - t0
    app.exec_loop()

if __name__ == '__main__':
    main(sys.argv)

