[Boa Constr] Removing options for wx.DIALOG_MODAL and wx.DIALOG_MODELESS
Status: Beta
Brought to you by:
riaan
From: Chris S. <csp...@ci...> - 2010-11-27 17:32:25
|
wx.DIALOG_MODAL and wx.DIALOG_MODELESS have been removed as of wxPython 2.9. It is dangerous (and unnecessary) to leave them in Boa Constructor. Therefore, in the file FrameCompanions.py, replace... class DialogDTC(FramesConstr, BaseFrameDTC): dialogLayout = True def __init__(self, name, designer, frameCtrl): BaseFrameDTC.__init__(self, name, designer, frameCtrl) self.windowStyles = ['wx.DIALOG_MODAL', 'wx.DIALOG_MODELESS', 'wx.CAPTION', 'wx.DEFAULT_DIALOG_STYLE', 'wx.RESIZE_BORDER', 'wx.THICK_FRAME', 'wx.STAY_ON_TOP', 'wx.DIALOG_NO_PARENT', 'wx.SYSTEM_MENU', 'wx.CLOSE_BOX']\ + self.windowStyles with... class DialogDTC(FramesConstr, BaseFrameDTC): dialogLayout = True def __init__(self, name, designer, frameCtrl): BaseFrameDTC.__init__(self, name, designer, frameCtrl) self.windowStyles = [ 'wx.CAPTION', 'wx.DEFAULT_DIALOG_STYLE', 'wx.RESIZE_BORDER', 'wx.THICK_FRAME', 'wx.STAY_ON_TOP', 'wx.DIALOG_NO_PARENT', 'wx.SYSTEM_MENU', 'wx.CLOSE_BOX']\ + self.windowStyles (just removing wx.DIALOG_MODAL and wx.DIALOG_MODELESS references) |