Author: bugman Date: Mon Dec 27 16:16:43 2010 New Revision: 11975 URL: http://svn.gna.org/viewcvs/relax?rev=11975&view=rev Log: The about device context is now embedded in a wx.ScrolledWindow embedded in the wx.Frame object. This will allow about dialogs that can be scrolled. 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=11975&r1=11974&r2=11975&view=diff ============================================================================== --- branches/bieri_gui/gui_bieri/about.py (original) +++ branches/bieri_gui/gui_bieri/about.py Mon Dec 27 16:16:43 2010 @@ -58,6 +58,9 @@ # Execute the base class __init__() method. super(About_base, self).__init__(*args, **kwds) + # Create a scrolled window. + self.window = wx.ScrolledWindow(self, -1) + # Initialise the y-offset variable. self._offset_val = 0 @@ -67,13 +70,13 @@ self.SetSize((self.total_x, self.total_y)) # Draw everything. - self.Bind(wx.EVT_PAINT, self.generate) + self.window.Bind(wx.EVT_PAINT, self.generate) # Let the dialog be closable with a left button click. - self.Bind(wx.EVT_MOUSE_EVENTS, self.cursor_style) + self.window.Bind(wx.EVT_MOUSE_EVENTS, self.cursor_style) # Let the dialog be closable with a left button click. - self.Bind(wx.EVT_LEFT_DOWN, self.process_click) + self.window.Bind(wx.EVT_LEFT_DOWN, self.process_click) # Center Window self.Centre() @@ -146,7 +149,7 @@ """ # Create the device context. - self.dc = wx.PaintDC(self) + self.dc = wx.PaintDC(self.window) # Set a background. self.set_background()