Author: bugman Date: Thu Feb 4 19:18:02 2010 New Revision: 10656 URL: http://svn.gna.org/viewcvs/relax?rev=10656&view=rev Log: Added a base class method process_click() which simply closes the widget. This makes the relax GUI about widget happy. Modified: branches/bieri_gui/gui_bieri/about.py Modified: branches/bieri_gui/gui_bieri/about.py URL: http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/about.py?rev=10656&r1=10655&r2=10656&view=diff ============================================================================== --- branches/bieri_gui/gui_bieri/about.py (original) +++ branches/bieri_gui/gui_bieri/about.py Thu Feb 4 19:18:02 2010 @@ -85,6 +85,20 @@ # Build the rest of the about widget. self.build_widget() + + + def process_click(self, event): + """Base method which just closes the widget on a click event. + + @param event: The wx event. + @type event: wx event + """ + + # Close the widget. + self.Close() + + # Terminate the event. + event.Skip() def set_background(self):