@@ -1370,13 +1370,9 @@ def on_open(self):
1370
1370
self .upper_bar .set_location_button .config (relief = SUNKEN )
1371
1371
1372
1372
def on_clock_reset (self ):
1373
- control_block .cached ['session_timestamp' ]['value' ] = 0
1374
- control_block .cached ['session_timestamp' ]['is_set' ] = 0
1375
1373
self .upper_bar .set_clock_button .config (relief = RAISED )
1376
1374
1377
1375
def on_export_location_reset (self ):
1378
- control_block .cached ['export_location' ]['is_set' ] = 0
1379
- control_block .cached ['export_location' ]['value' ] = ''
1380
1376
self .upper_bar .set_location_button .config (relief = RAISED )
1381
1377
1382
1378
def on_grid_reset (self ):
@@ -1626,10 +1622,10 @@ def clock_reset(self):
1626
1622
self .side_bar .on_clock_reset ()
1627
1623
1628
1624
def export_location_reset (self ):
1629
- control_block .cached ['export_location' ]['is_set' ] = 0
1630
- control_block .cached ['export_location' ]['value' ] = ''
1631
1625
self .side_bar .on_export_location_reset ()
1632
1626
self .dump_events_to_file ()
1627
+ control_block .cached ['export_location' ]['is_set' ] = 0
1628
+ control_block .cached ['export_location' ]['value' ] = ''
1633
1629
control_block .cached ['total_number_of_events' ] = 0
1634
1630
if self .event_manager :
1635
1631
self .event_manager .on_media_stop ()
@@ -1646,7 +1642,7 @@ def on_reset(self, event=None):
1646
1642
def dump_events_to_file (self ):
1647
1643
if not self .side_bar .is_location_set ():
1648
1644
if len (control_block .events ) > 0 :
1649
- raise Exception ()
1645
+ raise Exception ('Losing events! Something went really wrong!' )
1650
1646
return
1651
1647
for item in control_block .events :
1652
1648
self .write_record_to_csv (item )
0 commit comments