newbie Q's Boa

Gerrie Roos gerrie at
Mon Jun 25 03:45:34 EDT 2001

Ah, I had the exact same problem...its a small bug only on non-windows
were on the
right track.

In file, go to this line(roundabout 72 to 75):

    self.SetDimensions(120, 75, Preferences.wxDefaultFrameSize.x,

and remark it with leading #'s.

directly after that you should put:

if wxPlatform == '__WXGTK__':
    self.SetDimensions(120, 75, Preferences.wxDefaultFrameSize[0],

I can't remember if this bit was there or not, but make sure you've got it in there.
Its a small
difference in the wxWindows API on MS and UNIX.  MS uses .x and .y attributes and UNIX
[0] and [1] indexes for wxDefaultFrameSize.

lemme know if it helps or not!

myself wrote:

> I hope this isn't OT, but I can't find an answer doing Google/Groups
> searches or in limited docs- using Mandrake7.2, installed following:
> wxGTK-2.3.0-1.i386.rpm
> wxGTK-devel-2.3.0-1.i386.rpm
> wxGTK-gl-2.3.0-1.i386.rpm
> wxPython-2.3.0-1-Py21.i386.rpm
> wxPython-demo-2.3.0.tar.gz
> wxPython-docs-2.3.0.tar.gz
> wxPython-gl-2.3.0-1-Py21.i386.rpm
> Boa seems to load from shell without error, but clicking Boa-specific  help
> button I get:
> Traceback (most recent call last):
>   File "/usr/local/lib/python2.1/site-packages/Boa-0.0.5/", line 231, in O
> nHelpToolClick
>     Help.showHelp(self, Help.BoaHelpFrame, '', self.toolBar)
>   File "/usr/local/lib/python2.1/site-packages/Boa-0.0.5/", line 38, in showH
> elp
>     help = helpClass(parent, toolbar)
>   File "/usr/local/lib/python2.1/site-packages/Boa-0.0.5/", line 267, in __in
> it__
>     'Help.ico', paletteToolbar)
>   File "/usr/local/lib/python2.1/site-packages/Boa-0.0.5/", line 72, in __ini
> t__
>     self.SetDimensions(120, 75, Preferences.wxDefaultFrameSize.x,
> AttributeError: 'tuple' object has no attribute 'x'
> I tried to trace through various Boa and wxPython modules and wxWindows
> headers, but this is way over my head.
> Also, and perhaps related, I'm unclear how to set the help paths for
> Python and wxWindows to work within Boa. Docs say to set paths in
> in a key:value(path) format, and then run, but I
> don't know what format the "key" parts should follow in the dictionary,
> and can't find any examples. I'm scattered on my installations, but here
> goes:
> Python2.1 docs in ~/python/docs-21-html/, wxPython docs in
> ~/python/wxpython-2.3.0/, Python 2.1 in /usr/lib/python2.1/, Boa and
> wxPython in respective dirs in /usr/local/lib/python2.1/site-packages.
> wxPython docs apparently include the wxWindows docs. wxWindows
> is in /usr/include.
> To the limited extent I've run everything, the executables are in order,
> i.e. Py2.1 rather than Py1.5.2 loads, the wxPython demo runs ~95% (and
> looks awesome BTW). I expect a few of the demos to fail, eg the Win
> specific ones, and I think the only other ones not to run were sound and
> gl- I'm trying to "fix" both :-).

> any help appreciated!

More information about the Python-list mailing list