chiark / gitweb /
No longer allow to resize the preferences and expert config windows. Fixed #250....
authordaid303 <daid303@gmail.com>
Mon, 29 Oct 2012 08:07:40 +0000 (09:07 +0100)
committerdaid303 <daid303@gmail.com>
Mon, 29 Oct 2012 08:07:40 +0000 (09:07 +0100)
Cura/gui/configBase.py
Cura/gui/expertConfig.py
Cura/gui/preferencesDialog.py

index 6882483049dab1137b91205f878510f7d8dc97a4..4e8a1d683bf8a56a78d18357badd9ff65cc72fca 100644 (file)
@@ -13,8 +13,8 @@ def main():
 
 class configWindowBase(wx.Frame):
        "A base class for configuration dialogs. Handles creation of settings, and popups"
-       def __init__(self, title):
-               super(configWindowBase, self).__init__(None, title=title)
+       def __init__(self, title, style=wx.DEFAULT_FRAME_STYLE):
+               super(configWindowBase, self).__init__(None, title=title, style=style)
                
                self.settingControlList = []
                
index 1e47ec94a7dcd694e540a8082b8a032854e08dda..9233e333d5935331a7d3ebbcb2f856af896fa384 100644 (file)
@@ -13,7 +13,7 @@ from util import validators
 class expertConfigWindow(configBase.configWindowBase):
        "Expert configuration window"
        def __init__(self):
-               super(expertConfigWindow, self).__init__(title='Expert config')
+               super(expertConfigWindow, self).__init__(title='Expert config', style=wx.DEFAULT_DIALOG_STYLE)
 
                wx.EVT_CLOSE(self, self.OnClose)
 
index 4bbf755f14bacdf45980511a9429eb88cb549523..c5dececa8ec4e32af3d7bb3cea04d3a9de5f9855 100644 (file)
@@ -11,7 +11,7 @@ from util import profile
 \r
 class preferencesDialog(configBase.configWindowBase):\r
        def __init__(self, parent):\r
-               super(preferencesDialog, self).__init__(title="Preferences")\r
+               super(preferencesDialog, self).__init__(title="Preferences", style=wx.DEFAULT_DIALOG_STYLE)\r
                \r
                wx.EVT_CLOSE(self, self.OnClose)\r
                \r