On 21/07/06, Orri Ganel <[EMAIL PROTECTED]> wrote:
> I'm working on the GUI for my extended iTunes search, which allows
> searches far beyond the native iTunes capability.  Once the search has
> been completed, a window contining a Tix.CheckList with the resulting
> tracks is displayed.  If anyone has any idea how to figure out whether
> or not the horizontal scrollbar is visible (ie if the length of the
> track name extends beyond the width of the CheckList) programmatically,
> I'd be extremely grateful :-).

I don't know how to check the scrollbar, but one thing you could try
playing with: tkFont.Font instances support a .measure method.  So, if
f is a tkFont.Font, then f.measure('hello world!') will return how
many pixels wide that string would be on the screen.  You could maybe
compare this with the width of the widget itself?

-- 
John.
_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to