mailr11550 - /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 michael . bieri on September 13, 2010 - 06:40:
Author: michaelbieri
Date: Mon Sep 13 06:40:34 2010
New Revision: 11550

URL: http://svn.gna.org/viewcvs/relax?rev=11550&view=rev
Log:
About dialog was converted to frame to work on Windows.

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=11550&r1=11549&r2=11550&view=diff
==============================================================================
--- branches/bieri_gui/gui_bieri/about.py (original)
+++ branches/bieri_gui/gui_bieri/about.py Mon Sep 13 06:40:34 2010
@@ -35,7 +35,7 @@
 
 
 
-class About_base(wx.Dialog):
+class About_base(wx.Frame):
     """The about dialog base class."""
 
     # The background colour (gradient if second colour is given).
@@ -71,6 +71,9 @@
 
         # Let the dialog be closable with a left button click.
         self.Bind(wx.EVT_LEFT_DOWN, self.process_click)
+
+        # Center Window
+        self.Centre()
 
 
     def cursor_style(self, event):
@@ -224,10 +227,6 @@
             self.cursor_type = 'normal'
 
 
-        # Terminate the event.
-        event.Skip()
-
-
     def draw_copyright(self):
         """Draw the copyright statements."""
 
@@ -405,7 +404,3 @@
 
         # Close the dialog on all clicks.
         self.Close()
-
-        # Terminate the event.
-        event.Skip()
-




Related Messages


Powered by MHonArc, Updated Mon Sep 13 07:00:01 2010