No longer allow to resize the preferences and expert config windows. Fixed #250. Fixed #249.

master
daid303 2012-10-29 09:07:40 +01:00
parent 9e2cdde851
commit aeb6ae91e5
3 changed files with 4 additions and 4 deletions

View File

@ -13,8 +13,8 @@ def main():
class configWindowBase(wx.Frame): class configWindowBase(wx.Frame):
"A base class for configuration dialogs. Handles creation of settings, and popups" "A base class for configuration dialogs. Handles creation of settings, and popups"
def __init__(self, title): def __init__(self, title, style=wx.DEFAULT_FRAME_STYLE):
super(configWindowBase, self).__init__(None, title=title) super(configWindowBase, self).__init__(None, title=title, style=style)
self.settingControlList = [] self.settingControlList = []

View File

@ -13,7 +13,7 @@ from util import validators
class expertConfigWindow(configBase.configWindowBase): class expertConfigWindow(configBase.configWindowBase):
"Expert configuration window" "Expert configuration window"
def __init__(self): 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) wx.EVT_CLOSE(self, self.OnClose)

View File

@ -11,7 +11,7 @@ from util import profile
class preferencesDialog(configBase.configWindowBase): class preferencesDialog(configBase.configWindowBase):
def __init__(self, parent): 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) wx.EVT_CLOSE(self, self.OnClose)