On May 14, 2007, at 8:02 AM, f rom wrote:
> current code dsplitter.py line 219+-:
>
> def _onSashPos(self, evt):
> """Fires when the sash position is changed."""
> evt.Skip()
> # Update the internal sash position attribute.
> self._getSashPosition()
> sz = {"V": self.Width, "H": self.Height}[self.Orientation
> [0]] * 1.0
> if sz:
> pct = self.SashPosition / sz
> #self._sashPercent = pct
> self._sashPercent = max(0, min(1, pct))
> print "self._sashPercent =",self._sashPercent
> self.SetSashGravity(pct)
> # Raise a dEvent for other code to bind to,
> self.raiseEvent(dEvents.SashPositionChanged, evt)
It would be helpful if the print statement displayed the value that
is causing the error (pct), and not the value that already exists.
Can you change that to display 'pct' instead of 'self._sashPercent',
and post that output?
-- 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]