@@ -484,6 +484,7 @@ def change_omega_offset(self, action, window):
484
484
'''
485
485
if not self .active_file_name in self .file_options :
486
486
return None
487
+ #+++++ Create a dialog window for ooff input +++++
487
488
ooff_dialog = gtk .Dialog (title = 'Change omega offset:' )
488
489
ooff_dialog .set_default_size (100 ,50 )
489
490
ooff_dialog .add_button ('OK' , 1 )
@@ -521,13 +522,17 @@ def toggle_down(*ignore):
521
522
down_button .connect ('clicked' , toggle_down )
522
523
ooff_dialog .vbox .add (table )
523
524
ooff_dialog .show_all ()
525
+ #----- Create a dialog window for ooff input -----
526
+ # wait for user response
524
527
result = ooff_dialog .run ()
525
528
while result > 1 :
529
+ # response is Apply
526
530
ooff = float (input_filed .get_text ())
527
531
self .active_file_data [window .index_mess ].change_omega_offset (ooff )
528
532
window .replot ()
529
533
result = ooff_dialog .run ()
530
534
if result == 1 :
535
+ # response is OK
531
536
ooff = float (input_filed .get_text ())
532
537
self .file_options [self .active_file_name ][1 ]= ooff
533
538
self .active_file_data [window .index_mess ].change_omega_offset (ooff )
@@ -541,6 +546,7 @@ def change_increment(self, action, window):
541
546
'''
542
547
if not self .active_file_name in self .file_options :
543
548
return None
549
+ #+++++ Create a dialog window for increment input +++++
544
550
inc_dialog = gtk .Dialog (title = 'Change increment for same polarization:' )
545
551
inc_dialog .set_default_size (100 ,50 )
546
552
inc_dialog .add_button ('OK' , 1 )
@@ -551,8 +557,10 @@ def change_increment(self, action, window):
551
557
input_filed .show ()
552
558
input_filed .connect ('activate' , lambda * ignore : inc_dialog .response (1 ))
553
559
inc_dialog .vbox .add (input_filed )
560
+ #----- Create a dialog window for increment input -----
554
561
result = inc_dialog .run ()
555
562
if result == 1 :
563
+ # Answer is OK
556
564
inc = int (input_filed .get_text ())
557
565
self .file_options [self .active_file_name ][2 ]= inc
558
566
self .create_maps (self .active_file_name )
0 commit comments