Author: bugman Date: Tue Jun 14 14:51:47 2011 New Revision: 12986 URL: http://svn.gna.org/viewcvs/relax?rev=12986&view=rev Log: Added a method for catching resizing events. It currently does nothing, allowing the event to continue. 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=12986&r1=12985&r2=12986&view=diff ============================================================================== --- 1.3/gui/components/spectrum.py (original) +++ 1.3/gui/components/spectrum.py Tue Jun 14 14:51:47 2011 @@ -258,6 +258,24 @@ # Add the sizer to the static box and the static box to the main box. box.Add(sub_sizer, 1, wx.ALL|wx.EXPAND, 0) + # Catch a resize. + stat_box.Bind(wx.EVT_SIZE, self.resize) + + + def resize(self, event): + """Catch the resize to allow the grid to be resized. + + @param event: The wx event. + @type event: wx event + """ + + # Print out. + if status.debug: + print "Event size: %s" % event.GetSize() + + # Continue with the normal resizing. + event.Skip() + def add_buttons(self, sizer): """Add the buttons for peak list manipulation.