mailr10656 - /branches/bieri_gui/gui_bieri/about.py


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

Header


Content

Posted by edward on February 04, 2010 - 19:18:
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):




Related Messages


Powered by MHonArc, Updated Thu Feb 04 19:40:02 2010