#NEWLINE# def refresh_interval( self , event ) : #NEWLINE# #INDENT# table = self . notebook . GetPage ( self . notebook . GetSelection ( ) ) . grid . table #NEWLINE# dlg = wx . TextEntryDialog ( self , 'Enter refresh interval (milliseconds):' , 'Refresh timer:' , defaultValue = str ( self . refresh_interval ) ) #NEWLINE# if ( dlg . ShowModal ( ) == wx . ID_OK ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# milliseconds = int ( dlg . GetValue ( ) ) #NEWLINE# #UNINDENT# except ValueError as exc : #NEWLINE# #INDENT# self . SetStatusText ( str ( exc ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# table . timer . Start ( milliseconds = milliseconds , oneShot = False ) #NEWLINE# self . SetStatusText ( ( 'Refresh timer set to %s ms' % milliseconds ) ) #NEWLINE# self . SetStatusText ( ( 'Refresh interval: %s ms' % milliseconds ) , 1 ) #NEWLINE# self . refresh_interval = milliseconds #NEWLINE# #UNINDENT# #UNINDENT# dlg . Destroy ( )