From aeb6ae91e59ffa5b50602796577152673c8f9238 Mon Sep 17 00:00:00 2001 From: daid303 Date: Mon, 29 Oct 2012 09:07:40 +0100 Subject: [PATCH] No longer allow to resize the preferences and expert config windows. Fixed #250. Fixed #249. --- Cura/gui/configBase.py | 4 ++-- Cura/gui/expertConfig.py | 2 +- Cura/gui/preferencesDialog.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cura/gui/configBase.py b/Cura/gui/configBase.py index 6882483..4e8a1d6 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 1e47ec9..9233e33 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 4bbf755..c5decec 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)