Suggested patches for Boa to work with wxPython 2.9
Hi everyone,
Had a hard time to get an updated CVS copy - but that is another story.
boaRemoveNo_3D.patch
I went the easy way and just removed that style in all places where it
was used.
There is also one in your "prefs.rc.py" which is in your folder
"C:\Users\userid\.boa-constructor or in whatever folder you set with
the command option "-O"
About.py.patch
Fixes the wx.PyDeadObjectError I got on startup
PreferencesStandardPath.py.patch
This is only a work around for the issue of wx.StandardsPath not being
able to be called before wx.App is initialized. It is actually the use
of wx.FileConfig.
After these changes I can get Boa to run using the following:
# Python 2.6.3 (r263rc1:75186, Oct 2 2009, 20:40:30) [MSC v.1500 32 bit
(Intel)]
# wxPython 2.9.0.1.pre20100111, Boa Constructor 0.6.1
On Windows 7.
Best regards
Werner
Index: Preferences.py
===================================================================
RCS file: /cvsroot/boa-constructor/boa/Preferences.py,v
retrieving revision 1.57
diff -u -r1.57 Preferences.py
--- Preferences.py 5 Jul 2007 16:11:22 -0000 1.57
+++ Preferences.py 23 Jan 2010 10:15:30 -0000
<at> <at> -171,11 +171,13 <at> <at>
file = os.path.join(rcPath, confFile)
confVersion = 0
if os.path.exists(file):
- c = wx.FileConfig(localFilename=file, style= wx.CONFIG_USE_LOCAL_FILE)
- confVersion = c.ReadInt('/resourceconfig/version')
+ # don't do the wx.FileConfig version verification/upgrade until Riaan can fix this
+ pass
+ #c = wx.FileConfig(localFilename=file, style= wx.CONFIG_USE_LOCAL_FILE)
+ #confVersion = c.ReadInt('/resourceconfig/version')
- if confVersion < version:
- _backupAndCopyNewestConfig(confFile, file, '.cfg')
+ #if confVersion < version:
+ # _backupAndCopyNewestConfig(confFile, file, '.cfg')
else:
shutil.copy2(os.path.join(pyPath, 'Config', confFile), file)
Index: About.py
===================================================================
RCS file: /cvsroot/boa-constructor/boa/About.py,v
retrieving revision 1.38
diff -u -r1.38 About.py
--- About.py 2 Jul 2007 15:01:03 -0000 1.38
+++ About.py 23 Jan 2010 10:20:48 -0000
<at> <at> -316,8 +316,7 <at> <at>
self.html.SetPage(about_html % ('memory:Boa.jpg',
__version__.version, progress_text % (self.progressId, self.gaugePId), ''))
- wx.CallAfter(self.initCtrlNames)
-
+ self.initCtrlNames()
def initCtrlNames(self):
self.label = self.FindWindowById(self.progressId)
Index: Companions/BaseCompanions.py
===================================================================
RCS file: /cvsroot/boa-constructor/boa/Companions/BaseCompanions.py,v
retrieving revision 1.43
diff -u -r1.43 BaseCompanions.py
--- Companions/BaseCompanions.py 2 Jul 2007 15:01:08 -0000 1.43
+++ Companions/BaseCompanions.py 23 Jan 2010 09:57:02 -0000
<at> <at> -851,7 +851,7 <at> <at>
self.windowStyles = ['wx.CAPTION', 'wx.MINIMIZE_BOX', 'wx.MAXIMIZE_BOX',
'wx.THICK_FRAME', 'wx.SIMPLE_BORDER', 'wx.DOUBLE_BORDER',
'wx.SUNKEN_BORDER', 'wx.RAISED_BORDER', 'wx.STATIC_BORDER',
- 'wx.TRANSPARENT_WINDOW', 'wx.NO_3D', 'wx.TAB_TRAVERSAL',
+ 'wx.TRANSPARENT_WINDOW', 'wx.TAB_TRAVERSAL',
'wx.WANTS_CHARS', 'wx.NO_FULL_REPAINT_ON_RESIZE', 'wx.VSCROLL',
'wx.HSCROLL', 'wx.CLIP_CHILDREN', 'wx.NO_BORDER', 'wx.ALWAYS_SHOW_SB']
Index: Companions/FrameCompanions.py
===================================================================
RCS file: /cvsroot/boa-constructor/boa/Companions/FrameCompanions.py,v
retrieving revision 1.16
diff -u -r1.16 FrameCompanions.py
--- Companions/FrameCompanions.py 2 Jul 2007 15:01:09 -0000 1.16
+++ Companions/FrameCompanions.py 23 Jan 2010 10:07:43 -0000
<at> <at> -188,7 +188,7 <at> <at>
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.NO_3D', 'wx.DIALOG_NO_PARENT',
+ 'wx.THICK_FRAME', 'wx.STAY_ON_TOP', 'wx.DIALOG_NO_PARENT',
'wx.SYSTEM_MENU', 'wx.CLOSE_BOX']\
+ self.windowStyles
Index: Config/prefs.rc.py
===================================================================
RCS file: /cvsroot/boa-constructor/boa/Config/prefs.rc.py,v
retrieving revision 1.8
diff -u -r1.8 prefs.rc.py
--- Config/prefs.rc.py 10 Oct 2006 10:47:22 -0000 1.8
+++ Config/prefs.rc.py 23 Jan 2010 10:07:57 -0000
<at> <at> -23,7 +23,7 <at> <at>
# Frame test button on the Palette toolbar
showFrameTestButton = False
# Style flags used by most splitters in the IDE
-splitterStyle = wx.SP_LIVE_UPDATE | wx.SP_3DSASH | wx.NO_3D
+splitterStyle = wx.SP_LIVE_UPDATE | wx.SP_3DSASH
# Alternating background colours used in ListCtrls (pastel blue and yellow)
pastels = True
Index: Explorers/Explorer.py
===================================================================
RCS file: /cvsroot/boa-constructor/boa/Explorers/Explorer.py,v
retrieving revision 1.42
diff -u -r1.42 Explorer.py
--- Explorers/Explorer.py 2 Jul 2007 15:01:10 -0000 1.42
+++ Explorers/Explorer.py 23 Jan 2010 10:08:10 -0000
<at> <at> -529,7 +529,7 <at> <at>
def __init__(self, parent, modimages, editor, store,
XList=ExplorerList, XTree=ExplorerTree):
wx.SplitterWindow.__init__(self, parent, wxID_PFE,
- style=wx.CLIP_CHILDREN | wx.SP_LIVE_UPDATE)# | wxNO_3D | wxSP_3D)
+ style=wx.CLIP_CHILDREN | wx.SP_LIVE_UPDATE)
self.editor = editor
self.store = store
Index: Inspector.py
===================================================================
RCS file: /cvsroot/boa-constructor/boa/Inspector.py,v
retrieving revision 1.50
diff -u -r1.50 Inspector.py
--- Inspector.py 2 Jul 2007 15:01:04 -0000 1.50
+++ Inspector.py 23 Jan 2010 10:08:19 -0000
<at> <at> -871,7 +871,7 <at> <at>
style = Preferences.splitterStyle)
self.categories = wx.SplitterWindow(self, -1,
- style=wx.NO_3D | wx.SP_3D | wx.SP_LIVE_UPDATE)
+ style=wx.SP_3D | wx.SP_LIVE_UPDATE)
self.definitions = InspectorEventScrollWin(self, -1,
style=wx.SUNKEN_BORDER | wx.TAB_TRAVERSAL)
Index: Plug-ins/HelpBook.plug-in.py
===================================================================
RCS file: /cvsroot/boa-constructor/boa/Plug-ins/HelpBook.plug-in.py,v
retrieving revision 1.14
diff -u -r1.14 HelpBook.plug-in.py
--- Plug-ins/HelpBook.plug-in.py 2 Jul 2007 15:01:15 -0000 1.14
+++ Plug-ins/HelpBook.plug-in.py 23 Jan 2010 10:08:27 -0000
<at> <at> -683,7 +683,7 <at> <at>
delBmp = 'Images/Shared/DeleteItem.png'
def __init__(self, parent, model):
wx.SplitterWindow.__init__(self, parent, -1,
- style=wx.CLIP_CHILDREN | wx.NO_3D | wx.SP_3DSASH)
+ style=wx.CLIP_CHILDREN | wx.SP_3DSASH)
self.indexes = HelpBookIndexListView(self, model, self)
self.files = HelpBookFilesView(self, model, False)
Index: PropEdit/Enumerations.py
===================================================================
RCS file: /cvsroot/boa-constructor/boa/PropEdit/Enumerations.py,v
retrieving revision 1.12
diff -u -r1.12 Enumerations.py
--- PropEdit/Enumerations.py 2 Jul 2007 15:01:15 -0000 1.12
+++ PropEdit/Enumerations.py 23 Jan 2010 10:08:43 -0000
<at> <at> -19,7 +19,7 <at> <at>
windowStyles =[wx.CAPTION, wx.MINIMIZE_BOX, wx.MAXIMIZE_BOX, wx.THICK_FRAME,
wx.SIMPLE_BORDER, wx.DOUBLE_BORDER, wx.SUNKEN_BORDER, wx.RAISED_BORDER,
-wx.STATIC_BORDER, wx.TRANSPARENT_WINDOW, wx.NO_3D, wx.TAB_TRAVERSAL, wx.VSCROLL,
+wx.STATIC_BORDER, wx.TRANSPARENT_WINDOW, wx.TAB_TRAVERSAL, wx.VSCROLL,
wx.HSCROLL, wx.CLIP_CHILDREN]
windowNameStyles = {'wx.CAPTION':wx.CAPTION, 'wx.MINIMIZE_BOX':wx.MINIMIZE_BOX,
<at> <at> -27,7 +27,7 <at> <at>
'wx.SIMPLE_BORDER':wx.SIMPLE_BORDER, 'wx.DOUBLE_BORDER':wx.DOUBLE_BORDER,
'wx.SUNKEN_BORDER':wx.SUNKEN_BORDER, 'wx.RAISED_BORDER':wx.RAISED_BORDER,
'wx.STATIC_BORDER':wx.STATIC_BORDER, 'wx.TRANSPARENT_WINDOW':wx.TRANSPARENT_WINDOW,
-'wx.NO_3D':wx.NO_3D, 'wx.TAB_TRAVERSAL':wx.TAB_TRAVERSAL, 'wx.VSCROLL':wx.VSCROLL,
+'wx.TAB_TRAVERSAL':wx.TAB_TRAVERSAL, 'wx.VSCROLL':wx.VSCROLL,
'wx.HSCROLL':wx.HSCROLL, 'wx.CLIP_CHILDREN':wx.CLIP_CHILDREN}
# Fonts
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Boa-constructor-users mailing list
Boa-constructor-users@...
https://lists.sourceforge.net/lists/listinfo/boa-constructor-users