demo_window.py
changeset 29 c0cdef06fd16
parent 28 feee783d4fc5
child 45 43b2279b06e1
equal deleted inserted replaced
28:feee783d4fc5 29:c0cdef06fd16
    46     locale.setlocale(locale.LC_ALL, '')
    46     locale.setlocale(locale.LC_ALL, '')
    47     os.environ['ESCDELAY'] = '25' # do not wait 1 second after pressing Escape key
    47     os.environ['ESCDELAY'] = '25' # do not wait 1 second after pressing Escape key
    48     app = MyApplication()
    48     app = MyApplication()
    49     #app.start()
    49     #app.start()
    50     
    50     
    51     cProfile.run('app.start()', 'appstats')
    51     cProfile.run('app.start()', 'demo_window.appstats')
    52     p = pstats.Stats('appstats')
    52     p = pstats.Stats('demo_window.appstats')
    53     p.sort_stats('time', 'cumulative').print_stats(20)
    53     p.sort_stats('time', 'cumulative').print_stats(20)
    54 
    54