mailr12994 - /1.3/gui/components/spectrum.py


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

Header


Content

Posted by edward on June 14, 2011 - 16:20:
Author: bugman
Date: Tue Jun 14 16:20:30 2011
New Revision: 12994

URL: http://svn.gna.org/viewcvs/relax?rev=12994&view=rev
Log:
The change_delay_down() and change_delay_up() methods are now bound again.

This allows only numbers in the delay time control and updates the grid once 
changed.


Modified:
    1.3/gui/components/spectrum.py

Modified: 1.3/gui/components/spectrum.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/gui/components/spectrum.py?rev=12994&r1=12993&r2=12994&view=diff
==============================================================================
--- 1.3/gui/components/spectrum.py (original)
+++ 1.3/gui/components/spectrum.py Tue Jun 14 16:20:30 2011
@@ -268,6 +268,10 @@
         self.add_grid(box_centre)
         box_centre.AddSpacer(self.spacing)
 
+        # Bind some events.
+        self.delay_time.Bind(wx.EVT_KEY_DOWN, self.change_delay_down)
+        self.delay_time.Bind(wx.EVT_KEY_UP, self.change_delay_up)
+
 
     def resize(self, event):
         """Catch the resize to allow the grid to be resized.




Related Messages


Powered by MHonArc, Updated Tue Jun 14 16:40:02 2011