Removing options for wx.DIALOG_MODAL and wx.DIALOG_MODELESS

Chris Spencer <cspencer-vDbLwGUA7lNWk0Htik3J/[email protected]> Sat, 27 Nov 2010 12:32:05 -0500
Newsgroups gmane.comp.ide.boa-constructor.user
Organization Mine!!!!!
Message-ID <[email protected]>
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)

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev