[ltk-user] how to read properties of widgets
rs.andre at gmail.com
Fri Sep 2 11:37:25 PDT 2011
Thank you Peter!
That's exactly what I was looking for!
When I finish the client I'll surely notify the list.
Thank you again for your help and for the great GUI library!
On Fri, Sep 2, 2011 at 12:11 PM, Peter Herth <herth at peter-herth.de> wrote:
> Hi Andre,
> the direct counterpart to configure is cget which can be used to query
> properties. In your case however, I guess you want to catch the
> resizing of a canvas widget. To do that, bind the <configure> event
> (bind canvas "<Configure>" (lambda (event)
> (format t "I am ~a wide and ~a high~%" (event-width event)
> (event-height event)))
> If you decide to publish your client, please notify the list, as its
> great to know when someone writes an LTk based application :)
> On Thu, Sep 1, 2011 at 4:34 AM, Andre RsFiveTwo <rs.andre at gmail.com>
> > Hi,
> > I'm starting to use the ltk library to build a twitter client and I'm
> > it a lot.
> > I'm having trouble trying to read the properties of widgets.
> > I know for to set them, using configure, but I can't read them back.
> > More specifically, I'm trying to read the width and height of a canvas.
> > Any help would be appreciated.
> > Thanks,
> > André
> > _______________________________________________
> > ltk-user site list
> > ltk-user at common-lisp.net
> > http://common-lisp.net/mailman/listinfo/ltk-user
> ltk-user site list
> ltk-user at common-lisp.net
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ltk-user