mailr11548 - /branches/bieri_gui/gui_bieri/relax_gui.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by michael . bieri on September 13, 2010 - 05:58:
Author: michaelbieri
Date: Mon Sep 13 05:58:53 2010
New Revision: 11548

URL: http://svn.gna.org/viewcvs/relax?rev=11548&view=rev
Log:
Removed 'event.skip()' code, which may cause an event handler to get called 
more than once on Windows.

Modified:
    branches/bieri_gui/gui_bieri/relax_gui.py

Modified: branches/bieri_gui/gui_bieri/relax_gui.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/relax_gui.py?rev=11548&r1=11547&r2=11548&view=diff
==============================================================================
--- branches/bieri_gui/gui_bieri/relax_gui.py (original)
+++ branches/bieri_gui/gui_bieri/relax_gui.py Mon Sep 13 05:58:53 2010
@@ -170,9 +170,6 @@
         # The dialog.
         self.dialog_about_gui.Show()
 
-        # Terminate the event.
-        event.Skip()
-
 
     def about_relax(self, event):
         """The about message for relax.
@@ -183,9 +180,6 @@
 
         # The dialog.
         self.dialog_about_relax.Show()
-
-        # Terminate the event.
-        event.Skip()
 
 
     def action_state_save(self, event):
@@ -203,9 +197,6 @@
         # Save.
         self.state_save()
 
-        # Skip the event.
-        event.Skip()
-
 
     def action_state_save_as(self, event):
         """Save the program state with file name selection.
@@ -222,9 +213,6 @@
 
         # Save.
         self.state_save()
-
-        # Skip the event.
-        event.Skip()
 
 
     def build_main_window(self):
@@ -464,9 +452,6 @@
             # Destroy the main window.
             self.Destroy()
 
-        # Terminate the event.
-        event.Skip()
-
 
     def import_seq(self, event): # open load sequence panel
         temp = load_sequence(self)
@@ -493,8 +478,6 @@
             # Load sequencefile in relax data storage.
             for i in range(10):
              ds.relax_gui.analyses[i].sequence_file = sequencefile
-
-        event.Skip()
 
 
     def init_data(self):
@@ -582,26 +565,22 @@
             self.resultsdir_r21_copy_2.SetValue(newdir + sep + 'model_free')
 
             dir_message('Folder structure created for Model-free 
analysis:\n\n\n' + newdir + sep + 'NOE_1\n' + newdir + sep + 'NOE_2\n' + 
newdir + sep + 'NOE_3\n' + newdir + sep + 'R1_1\n' + newdir + sep + 'R1_2\n' 
+ newdir + sep + 'R1_3\n' + newdir + sep + 'R2_1\n' + newdir + sep + 'R2_2\n' 
+ newdir + sep + 'R2_3\n' + newdir + sep + 'model-free')
-        event.Skip()
 
 
     def open_model_results_exe(self, event):    # open model-free results
         choice = self.list_modelfree.GetStringSelection()
         model_result = [ds.relax_gui.table_residue, 
ds.relax_gui.table_model, ds.relax_gui.table_s2, ds.relax_gui.table_rex, 
ds.relax_gui.table_te] # relax results values
         see_results(choice, model_result)
-        event.Skip()
 
 
     def open_noe_results_exe(self, event): #open results of noe run
         choice = self.list_noe.GetStringSelection()
         see_results(choice, None)
-        event.Skip()
 
 
     def open_rx_results_exe(self, event): # open results of r1 and r2 runs
         choice = self.list_rx.GetStringSelection()
         see_results(choice, None)
-        event.Skip()
 
 
     def param_file_setting(self, event): # set up parameter files
@@ -609,7 +588,6 @@
         if not tmp_setting == None:
             if question('Do you realy want to change import file settings?'):
                 ds.relax_gui.file_setting = tmp_setting
-        event.Skip()
 
 
     def references(self, event):
@@ -622,9 +600,6 @@
         # Build and show the references window.
         self.references = References(self)
         self.references.Show()
-
-        # Terminate the event.
-        event.Skip()
 
 
     def reset_setting(self, event): #reset all settings
@@ -639,7 +614,6 @@
         if not tmp_global == None:
             if question('Do you realy want to change relax settings?'):
                 ds.relax_gui.global_setting = tmp_global
-        event.Skip()
 
 
     def show_controller(self, event):
@@ -652,9 +626,6 @@
         # Open the window.
         self.controller.Show()
 
-        # Terminate the event.
-        event.Skip()
-
 
     def state_load(self, event):
         """Load the program state.
@@ -668,9 +639,6 @@
 
         # No file has been selected.
         if not filename:
-            # Skip the event.
-            event.Skip()
-
             # Don't do anything.
             return
 
@@ -717,9 +685,6 @@
             if hasattr(analysis, 'sync_ds'):
                 analysis.sync_ds(upload=False)
 
-        # Skip the event.
-        event.Skip()
-
 
     def state_save(self):
         """Save the program state."""
@@ -757,8 +722,6 @@
             
self.analysis_frames[self.hardcoded_index_r2_2].field_structure.SetValue(structure_file_pdb)
             
self.analysis_frames[self.hardcoded_index_r2_3].field_structure.SetValue(structure_file_pdb)
 
-        event.Skip()
-
 
     def sync_ds(self, upload=False):
         """Synchronise the GUI and the relax data store, both ways.




Related Messages


Powered by MHonArc, Updated Mon Sep 13 06:40:02 2010