Problem with Tkinter scrollbar callback

Ivan Van Laningham ivanlan9 at gmail.com
Tue Jan 29 19:03:20 CET 2008


No Joy.

Waits the 1 second, then clicks the button once per second until the
limit's reached.

Sigh.

Metta,
Ivan

On Jan 29, 2008 10:20 AM, Russell E Owen <rowen at cesmail.net> wrote:
> >Nope:
> >
> >'repeatdelay': ('repeatdelay', 'repeatDelay', 'RepeatDelay', '300', '300'),
> >
> >And even after I set it, it looks funny:
> >
> >'repeatdelay': ('repeatdelay', 'repeatDelay', 'RepeatDelay', '300', '1000'),
> >
> >And when I try it with the new repeatdelay (1000), the only thing that
> >has changed is that it waits 1000 milliseconds before exhibiting the
> >same uncontrolled growth as before.
>
> You need to change repeatinterval, not repeatdelay.
>
> As to "looking funny": that is the standard output format for
> configure(). I think can get a more reasonable value using
> "cget(repeatdelay)".
>
> -- Russell
>
>
> >
> >Metta,
> >Ivan
> >
> >On Jan 25, 2008 5:49 PM, Russell E. Owen <rowen at cesmail.net> wrote:
> >>  In article <mailman.1056.1201219091.896.python-list at python.org>,
> >>   "Ivan Van Laningham" <ivanlan9 at gmail.com> wrote:
> >>
> >>  > Hi All--
> >>  > That helps.  Doing a get() on the scrollbar before a set(0.0,0.0)
> >>  > returns a 4-tuple:  (0.0, 0.0, 0.0, 0.0)  !  I did the set(0.0,0.0)
> >>  > and now the callback gets the correct number of arguments.
> >>  >
> >>  > However, I'm still getting the weird behaviour when clicking the
> >>  > arrowheads--and the heads are all I want.  They act like they've been
> >>  > set to a keybounce timeout of about a millisecond. ...  The arrow
> >>  > click increments the number of cells in a table row (effectively), and
> >>  > it shoots up from 5 to 26 columns almost instantly (that's the
> >>  > internal max I set).
> >>
> >>  Is the scroll bar's repeatinterval set to a reasonable value?
> >>
> >>  -- Russell
> >>
> >>  --
> >>  http://mail.python.org/mailman/listinfo/python-list
> >>
> >
> >
> >
> >--
> >Ivan Van Laningham
> >God N Locomotive Works
> >http://www.pauahtun.org/
> >http://www.python.org/workshops/1998-11/proceedings/papers/laningham/laningham.html
> >Army Signal Corps:  Cu Chi, Class of '70
> >Author:  Teach Yourself Python in 24 Hours
>
>



-- 
Ivan Van Laningham
God N Locomotive Works
http://www.pauahtun.org/
http://www.python.org/workshops/1998-11/proceedings/papers/laningham/laningham.html
Army Signal Corps:  Cu Chi, Class of '70
Author:  Teach Yourself Python in 24 Hours



More information about the Python-list mailing list