Author: bugman Date: Mon Sep 19 10:54:03 2011 New Revision: 14685 URL: http://svn.gna.org/viewcvs/relax?rev=14685&view=rev Log: Fixes for the main GUI window moving in front of the spin viewer window. The spin viewer window is now set as the parent for the Question dialogs, so that this window remains at the front. Modified: 1.3/gui/spin_viewer/tree.py Modified: 1.3/gui/spin_viewer/tree.py URL: http://svn.gna.org/viewcvs/relax/1.3/gui/spin_viewer/tree.py?rev=14685&r1=14684&r2=14685&view=diff ============================================================================== --- 1.3/gui/spin_viewer/tree.py (original) +++ 1.3/gui/spin_viewer/tree.py Mon Sep 19 10:54:03 2011 @@ -228,7 +228,7 @@ # Ask if this should be done. msg = "Are you sure you would like to delete this molecule? This operation cannot be undone." - if status.show_gui and Question(msg, default=False).ShowModal() == wx.ID_NO: + if status.show_gui and Question(msg, parent=self.gui.spin_viewer, default=False).ShowModal() == wx.ID_NO: return # Delete the molecule. @@ -247,7 +247,7 @@ # Ask if this should be done. msg = "Are you sure you would like to delete this residue? This operation cannot be undone." - if status.show_gui and Question(msg, default=False).ShowModal() == wx.ID_NO: + if status.show_gui and Question(msg, parent=self.gui.spin_viewer, default=False).ShowModal() == wx.ID_NO: return # Delete the residue. @@ -266,7 +266,7 @@ # Ask if this should be done. msg = "Are you sure you would like to delete this spin? This operation cannot be undone." - if status.show_gui and Question(msg, default=False).ShowModal() == wx.ID_NO: + if status.show_gui and Question(msg, parent=self.gui.spin_viewer, default=False).ShowModal() == wx.ID_NO: return # Delete the spin. @@ -285,7 +285,7 @@ # Ask if this should be done. msg = "Are you sure you would like to deselect all spins of this molecule?" - if status.show_gui and Question(msg, default=False).ShowModal() == wx.ID_NO: + if status.show_gui and Question(msg, parent=self.gui.spin_viewer, default=False).ShowModal() == wx.ID_NO: return # Deselect the molecule. @@ -304,7 +304,7 @@ # Ask if this should be done. msg = "Are you sure you would like to deselect all spins of this residue?" - if status.show_gui and Question(msg, default=False).ShowModal() == wx.ID_NO: + if status.show_gui and Question(msg, parent=self.gui.spin_viewer, default=False).ShowModal() == wx.ID_NO: return # Deselect the residue. @@ -566,7 +566,7 @@ # Ask if this should be done. msg = "Are you sure you would like to select all spins of this molecule?" - if status.show_gui and Question(msg, default=False).ShowModal() == wx.ID_NO: + if status.show_gui and Question(msg, parent=self.gui.spin_viewer, default=False).ShowModal() == wx.ID_NO: return # Select the molecule. @@ -585,7 +585,7 @@ # Ask if this should be done. msg = "Are you sure you would like to select all spins of this residue?" - if status.show_gui and Question(msg, default=False).ShowModal() == wx.ID_NO: + if status.show_gui and Question(msg, parent=self.gui.spin_viewer, default=False).ShowModal() == wx.ID_NO: return # Select the residue.