[ltk-user] Question about scrolled-text widget

Peter Herth herth at peter-herth.de
Fri Aug 17 10:23:59 UTC 2007


Hi Jeff,

the problem lies in the fact that the scrolled-text is only a
container around the contained textbox widget. So for configuration,
you need to configure that widget rather than the scrolled-textbox.
You can access it via its textbox slot. So I would write something like:
(let* ((textframe (make-instance 'frame))
    (textbox (make-instance 'scrolled-text :master textframe))
    (text (textbox textbox)))

(configure text :width 20 :height 30 :background :white)

once you got the scrolled-text widget packet, you are really only
interested in its contained textbox.

HTH,
Peter



More information about the ltk-user mailing list