Author: bugman Date: Tue Aug 2 09:21:08 2011 New Revision: 14048 URL: http://svn.gna.org/viewcvs/relax?rev=14048&view=rev Log: The about relax dialog is now resized dependent on the extent of the text. Modified: branches/gui_testing/gui/about.py Modified: branches/gui_testing/gui/about.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/about.py?rev=14048&r1=14047&r2=14048&view=diff ============================================================================== --- branches/gui_testing/gui/about.py (original) +++ branches/gui_testing/gui/about.py Tue Aug 2 09:21:08 2011 @@ -509,7 +509,7 @@ # Dimensions. dim_x = 450 - dim_y = 580 + dim_y = 600 # Spacer size (px). border = 10 @@ -540,6 +540,13 @@ self.draw_desc_long() self.draw_licence() + # Resize the window. + dim_x = self.dim_x + dim_y = self.offset() + self.border + self.SetSize((dim_x, dim_y)) + self.window.SetVirtualSize((dim_x, dim_y)) + self.window.EnableScrolling(x_scrolling=False, y_scrolling=False) + def draw_copyright(self): """Draw the copyright statements."""