On Fri, 22 Jun 2001, Steve McClure wrote:

> I'm trying to change the adjustment for a dial to parameters specified
> by the user, I do:
>
> def setDialRange(widName, min, max):
>     w = app.wtree.get_widget(widName)
>     adj = w.get_adjustment()
>     if adj.lower != min or adj.upper != max:
>         adj.lower = min
>         adj.upper = max
>         w.set_adjustment(adj)
>
> but the widget doesn't change it appearance.  I have also tried calling
>
>       adj.changed() in place of and in addition to
> w.set_adjustment(adj)
>
> Any pointers would be appreciated.

Try adding a "w.queue_draw()" call after changing the adjustment bounds.

James.

-- 
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to