On May 8, 2007, at 3:55 PM, f rom wrote:
> These are my first babysteps using dabo (trouble with gravity?):
>
>> python IDE.py
>
> The Dabo IDE is not yet in a usable state. When the tools
> it needs are mature and stable enough, the IDE will then be
> updated
> to be the central focus for Dabo development. Until then,
> you may
> use any of the tools individually.
IMO, that should have never been left in the directory, but we added
the disclaimer message because so many people were reporting errors.
> python ClassDesigner.py
> Dabo Info Log: Tue May 08 21:48:35 2007: PyOpenGL not present, so
> dGlWindow is not loaded.
> Dabo Info Log: Tue May 08 21:48:38 2007: 1 database connection
> definition(s) loaded.
> Dabo Info Log: Tue May 08 21:48:38 2007: User interface already set
> to 'wx', so dApp didn't touch it.
> Dabo Info Log: Tue May 08 21:48:39 2007: wxPython Version: 2.8.3.0
> wxMSW (unicode)
[snip]
> Traceback (most recent call last):
> File "c:\python25\lib\site-packages\Dabo-0.8a-py2.5.egg\dabo\ui
> \uiwx\dSplitter.py", line 220, in _onSashPos
> self.SetSashGravity(pct)
> File "C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx
> \_windows.py", line 1193, in SetSashGravity
> return _windows_.SplitterWindow_SetSashGravity(*args, **kwargs)
> wx._core.PyAssertionError: C++ assertion "gravity >= 0. && gravity
> <= 1." failed at ..\..\src\generic\splitter.cpp(454) in
> rWindow::SetSashGravity(): invalid gravity value
Odd - I've never seen a case where the sash position was outside the
bounds of the window, but I guess anything's possible. I've just
posted a fix to the repository; since you're not using the Subversion
copy, try opeing the file:
c:\python25\lib\site-packages\Dabo-0.8a-py2.5.egg\dabo\ui\uiwx
\dSplitter.py
...in any text editor, and change line 219 to read:
self._sashPercent = max(0, min(1, pct))
Be careful that it is indented with 3 tabs; the line above will have
the tabs converted to spaces in most email clients. Then try doing
what you did to get the above error, and let me know how it works.
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]