From: daid303 Date: Mon, 29 Oct 2012 08:07:40 +0000 (+0100) Subject: No longer allow to resize the preferences and expert config windows. Fixed #250.... X-Git-Tag: 13.03~231 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=aeb6ae91e59ffa5b50602796577152673c8f9238;p=cura.git No longer allow to resize the preferences and expert config windows. Fixed #250. Fixed #249. --- diff --git a/Cura/gui/configBase.py b/Cura/gui/configBase.py index 68824830..4e8a1d68 100644 --- a/Cura/gui/configBase.py +++ b/Cura/gui/configBase.py @@ -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 = [] diff --git a/Cura/gui/expertConfig.py b/Cura/gui/expertConfig.py index 1e47ec94..9233e333 100644 --- a/Cura/gui/expertConfig.py +++ b/Cura/gui/expertConfig.py @@ -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) diff --git a/Cura/gui/preferencesDialog.py b/Cura/gui/preferencesDialog.py index 4bbf755f..c5dececa 100644 --- a/Cura/gui/preferencesDialog.py +++ b/Cura/gui/preferencesDialog.py @@ -11,7 +11,7 @@ from util import profile class preferencesDialog(configBase.configWindowBase): def __init__(self, parent): - super(preferencesDialog, self).__init__(title="Preferences") + super(preferencesDialog, self).__init__(title="Preferences", style=wx.DEFAULT_DIALOG_STYLE) wx.EVT_CLOSE(self, self.OnClose)