Peter Herth | 1 Nov 14:44 2009
Picon

Re: :textvariable

Hi Pedro,

can you tell me why you want to specify the name of the text variable
for labels?

Regards,
Peter

On Sat, Oct 31, 2009 at 6:25 AM, Pedro Kröger <pedro.kroger <at> gmail.com> wrote:
>
> Hi,
>
> I get an error if I try to use a :textvariable in a label:
>
> (with-ltk ()
>  (let ((foo ""))
>   (make-instance 'label :textvariable foo)))
>
>  Invalid initialization argument:
>    :TEXTVARIABLE
>
> In fact, when I expand the code to create a label class in ltk.lisp I
> see that there's no :textvariable key:
>
> (defwidget label (tktextvariable widget) () "label")
>
> And the textvariable that is being generated is text_<value of :text>.
>
> Any chance this can be fixed in the next release?
>
(Continue reading)

Peter Herth | 1 Nov 14:46 2009
Picon

Re: tiny patch: initial dir in choose-directory

Actually, the space was needed in certain cases under Windows, but I
have fixed it with proper escaping.

Thanks,
Peter

On Fri, Oct 30, 2009 at 6:00 AM, Pedro Kröger <pedro.kroger <at> gmail.com> wrote:
>
> Hi,
>
> There's an extra space in choose-directory that confuses tk. The
> attached patch fixes it.
>
> Pedro
>
>
> _______________________________________________
> ltk-user site list
> ltk-user <at> common-lisp.net
> http://common-lisp.net/mailman/listinfo/ltk-user
>

Peter Herth | 1 Nov 14:48 2009
Picon

Re: manual source code

The manual source is currently not available, but if you tell me the necessary
latex2html command I will gladly generate and upload a single-page version of
the manual.

Peter

On Thu, Oct 29, 2009 at 6:23 AM, Pedro Kröger <pedro.kroger <at> gmail.com> wrote:
>
> Hi,
>
> I'd like to know if the latex source of the manual is available
> somewhere. I want to generate an one-page-only html.
>
> Cheers,
>
> Pedro
>
> _______________________________________________
> ltk-user site list
> ltk-user <at> common-lisp.net
> http://common-lisp.net/mailman/listinfo/ltk-user
>

Peter Herth | 1 Nov 14:47 2009
Picon

Re: small patch: listbox-delete

Thanks, I have put it in.
Peter

On Thu, Oct 29, 2009 at 6:54 AM, Pedro Kröger <pedro.kroger <at> gmail.com> wrote:
>
> Hi,
>
> The following patch implements a method for deleting elements in a listbox.
>
> Pedro
>
>
> _______________________________________________
> ltk-user site list
> ltk-user <at> common-lisp.net
> http://common-lisp.net/mailman/listinfo/ltk-user
>

Peter Herth | 1 Nov 14:56 2009
Picon

Re: image create photo -file ...

Merged in.

Thanks,
Peter

On Thu, Oct 22, 2009 at 4:04 AM, Daniel Herring <dherring <at> tentpost.com> wrote:
> I am using the attached patch to read images from gif files.
>
> Later,
> Daniel
> _______________________________________________
> ltk-user site list
> ltk-user <at> common-lisp.net
> http://common-lisp.net/mailman/listinfo/ltk-user
>

Pedro Kröger | 1 Nov 17:12 2009
Picon

Re: manual source code

Peter Herth <herth <at> peter-herth.de> writes:

> The manual source is currently not available, but if you tell me the necessary
> latex2html command I will gladly generate and upload a single-page version of
> the manual.

Thanks. I guess "-split 0" is the only thing that needs to be added.

Pedro

Peter Herth | 1 Nov 20:16 2009
Picon

Re: manual source code

Here it is: http://www.peter-herth.de/ltk/ltkdoc-single/

Regards,
Peter

On Sun, Nov 1, 2009 at 5:12 PM, Pedro Kröger <pedro.kroger <at> gmail.com> wrote:
> Peter Herth <herth <at> peter-herth.de> writes:
>
>> The manual source is currently not available, but if you tell me the necessary
>> latex2html command I will gladly generate and upload a single-page version of
>> the manual.
>
> Thanks. I guess "-split 0" is the only thing that needs to be added.
>
> Pedro
>
> _______________________________________________
> ltk-user site list
> ltk-user <at> common-lisp.net
> http://common-lisp.net/mailman/listinfo/ltk-user
>

Pedro Kröger | 2 Nov 05:32 2009
Picon

Re: manual source code

Peter Herth <herth <at> peter-herth.de> writes:

> Here it is: http://www.peter-herth.de/ltk/ltkdoc-single/

thanks a lot!

Pedro

Pedro Kröger | 2 Nov 05:46 2009
Picon

Re: :textvariable

Peter Herth <herth <at> peter-herth.de> writes:

> can you tell me why you want to specify the name of the text variable
> for labels?

to implement a statusbar and have the text change when necessary. Right
now I'm using something like:

(defun statusbar-update (text)
 (format-wish "set text_statusbar {  ~a}" text))

(defun statusbar-clean ()
 (format-wish "set text_statusbar {}"))

Initially I thought I needed to pass a lisp variable to :textvariable and
it'd be mapped to the variable in -textvariable. Is that the wrong way
to approach it?

Pedro

Peter Herth | 2 Nov 09:40 2009
Picon

Re: :textvariable

To read and set the content of any tktextvariable descendant widget, you can use
the "text" generic function. So if you have a label called lbl, you
can read its current
text with
(text lbl)
and change it with
(setf (text lbl) "Hello World")

If you need to track content changes e.g. with the entry widget (which
also inherits
from tktextvariable), bind the "<KeyPress>" event, and you can read the new text
contant also with the text function.
Does this address all your needs?

Regards,
Peter


Gmane