Author: bugman Date: Tue Jun 18 17:44:03 2013 New Revision: 20198 URL: http://svn.gna.org/viewcvs/relax?rev=20198&view=rev Log: Fix for bug #20918 (https://gna.org/bugs/?20918), the hanging of the data pipe editor. This was reported by Troels Linnet (https://gna.org/users/tlinnet) and is an MS Windows only problem. The problem is in the wxMSW part of wxPython, and it may be fixed in newer wxPython versions. The issue is nevertheless now avoided by calling the GUI user function store objects with the arguments wx_wizard_sync=True and wx_wizard_modal=True. This appears to solve the problem. Modified: trunk/gui/pipe_editor.py Modified: trunk/gui/pipe_editor.py URL: http://svn.gna.org/viewcvs/relax/trunk/gui/pipe_editor.py?rev=20198&r1=20197&r2=20198&view=diff ============================================================================== --- trunk/gui/pipe_editor.py (original) +++ trunk/gui/pipe_editor.py Tue Jun 18 17:44:03 2013 @@ -249,17 +249,17 @@ # Launch the respective user functions. if event.GetEventObject() == self.button_bundle: - uf_store['pipe.bundle'](event, wx_parent=self) + uf_store['pipe.bundle'](event, wx_parent=self, wx_wizard_sync=True, wx_wizard_modal=True) elif event.GetEventObject() == self.button_create: - uf_store['pipe.create'](event, wx_parent=self) + uf_store['pipe.create'](event, wx_parent=self, wx_wizard_sync=True, wx_wizard_modal=True) elif event.GetEventObject() == self.button_copy: - uf_store['pipe.copy'](event, wx_parent=self) + uf_store['pipe.copy'](event, wx_parent=self, wx_wizard_sync=True, wx_wizard_modal=True) elif event.GetEventObject() == self.button_delete: - uf_store['pipe.delete'](event, wx_parent=self) + uf_store['pipe.delete'](event, wx_parent=self, wx_wizard_sync=True, wx_wizard_modal=True) elif event.GetEventObject() == self.button_hybrid: - uf_store['pipe.hybridise'](event, wx_parent=self) + uf_store['pipe.hybridise'](event, wx_parent=self, wx_wizard_sync=True, wx_wizard_modal=True) elif event.GetEventObject() == self.button_switch: - uf_store['pipe.switch'](event, wx_parent=self) + uf_store['pipe.switch'](event, wx_parent=self, wx_wizard_sync=True, wx_wizard_modal=True) def add_logo(self, box):