Author: michaelbieri Date: Mon Sep 13 06:30:02 2010 New Revision: 11549 URL: http://svn.gna.org/viewcvs/relax?rev=11549&view=rev Log: The relaxGUI controller window is converted fro a dialog to a frame for proper function in Windows. Modified: branches/bieri_gui/gui_bieri/controller.py Modified: branches/bieri_gui/gui_bieri/controller.py URL: http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/controller.py?rev=11549&r1=11548&r2=11549&view=diff ============================================================================== --- branches/bieri_gui/gui_bieri/controller.py (original) +++ branches/bieri_gui/gui_bieri/controller.py Mon Sep 13 06:30:02 2010 @@ -42,14 +42,14 @@ from message import question -class Controller(wx.Dialog): +class Controller(wx.Frame): """The relax controller window.""" def __init__(self, *args, **kwds): # Create GUI elements kwds["style"] = wx.MINIMIZE_BOX | wx.SYSTEM_MENU | wx.CAPTION | wx.CLOSE_BOX - wx.Dialog.__init__(self, *args, **kwds) + wx.Frame.__init__(self, *args, **kwds) # header self.relax_logo = wx.StaticBitmap(self, -1, wx.Bitmap(IMAGE_PATH+'relax.gif', wx.BITMAP_TYPE_ANY)) @@ -92,6 +92,7 @@ self.SetSizer(main_sizer) self.Layout() self.SetSize((600, 600)) + self.Centre() def __set_properties(self): @@ -126,9 +127,6 @@ if doexit: sys.exit(0) - # Terminate the event. - event.Skip() - def handler_close(self, event): """Event handler for the close window action. @@ -138,10 +136,7 @@ """ # Close the window. - self.Close() - - # Terminate the event. - event.Skip() + self.Hide()