Hi,

I'm using a single screen laptop system with Mandriva 2010.0.  The
splash screen at the start is perfectly centred, as is the main
window.  But going to "help->about relaxGUI", the about screen is not
centred.  It is offset so that it is perfectly centred in a box
between the upper left hand side of the main window and the bottom
right hand side of the laptop screen.  I'm guessing there are some
wx.Frame size issue problems here.  Changing SetMinSize() in
About_base.__init__() to SetSize() seems to fix this.  Do you see the
problem too?  This was caused by the change from a wx.Dialog to a
wx.Frame.

Regards,

Edward



On 14 September 2010 00:42, Michael Bieri <[email protected]> wrote:
> 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,<[email protected]>  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
>>> [email protected]
>>>
>>> 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
>> [email protected]
>>
>> 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
>>
>>
>>
>
> _______________________________________________
> relax (http://nmr-relax.com)
>
> This is the relax-devel mailing list
> [email protected]
>
> 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
>

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

This is the relax-devel mailing list
[email protected]

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

Reply via email to