mailRe: r11550 - /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 14, 2010 - 00:43:
Hi Edward

The self.Center() command centers the frame in the screen (if you are using 2 screens, it will overlap both). Does this not happen on you Linux distribution?

Cheers
Michael

Am 13.09.2010 18:47, schrieb Edward d'Auvergne:
Hi Michael,

The self.Centre() command seems necessary, but under Linux the frame
is not actually centred.  Is there another way of specifying the
central location?  Or does the size of the window need to be
communicated?

Cheers,

Edward



On 13 September 2010 06:40,<michael.bieri@xxxxxxxxxxxxx>  wrote:
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()
-


_______________________________________________
relax (http://nmr-relax.com)

This is the relax-commits mailing list
relax-commits@xxxxxxx

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits

_______________________________________________
relax (http://nmr-relax.com)

This is the relax-devel mailing list
relax-devel@xxxxxxx

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-devel





Related Messages


Powered by MHonArc, Updated Tue Sep 14 14:40:18 2010