Menu

#202 Crash loading Boa 0.3.1 with wx 2.5.2.7 -types error

open
nobody
None
5
2004-08-28
2004-08-28
Alexander
No

Hi

I had a problem starting Boa 0.3.1 (installed in site-packages) on my FC2
after installing wxPython version 2.5.2.7 getting a warning that types (or
something) did not exsist. I eddited /usr/lib/python2.3/site-packages/boa-
constructor-0.3.1/Utils.py. Which made it work!

on line 12 to:

from types import InstanceType
#debug
from types import ClassType as test
from types import InstanceType as test2
print test, test2
#end debug

on line 343:
#if type(Win) is types.ClassType: debug test to line below
if type(Win) is test:
win = apply(Win, (panel,) + args, kwargs)
#elif type(Win) is types.InstanceType: debug test2 to line below
elif type(Win) is test2:
win = Win
win.Reparent(panel)
else:
#raise 'Unhandled type for Win'
win = apply(Win, (panel,) + args, kwargs)

I hope this can be put to use by someone.
Thanks for giving us Boa, my favorite editor! AlexanderH

Discussion


Log in to post a comment.