Phil Armitage | 15 Nov 02:12 2006
Picon

selected text

Hi,

I'm starting to use LTK but there's one feature I need and have been
unable to find. Essentially I want to be able to retrieve the selected
text in a text widget. I searched through the docs and source but
couldn't find anything (I apologize if I've missed it).

I'm very new to Lisp (and Tk!) but I managed to write this:

(defmethod selected ((text text))
  (format-wish "senddatastring [~a get sel.first sel.last]" (widget-path text))
  (read-data))

...which works but causes problems if no text is selected.

Is there an obvious way around this (or, even better, an existing
function to do the job that I've just missed)?

Many thanks in advance for any help you can offer (and thanks to Peter
for writing the library!).

Phil
Felip Alàez Nadal | 15 Nov 14:06 2006
Picon

Re: selected text

Hello:

I believe you should use:

(text text-widget)

2006/11/15, Phil Armitage <philip.armitage <at> gmail.com>:
> Hi,
>
> I'm starting to use LTK but there's one feature I need and have been
> unable to find. Essentially I want to be able to retrieve the selected
> text in a text widget. I searched through the docs and source but
> couldn't find anything (I apologize if I've missed it).
>
> I'm very new to Lisp (and Tk!) but I managed to write this:
>
> (defmethod selected ((text text))
>   (format-wish "senddatastring [~a get sel.first sel.last]" (widget-path text))
>   (read-data))
>
> ...which works but causes problems if no text is selected.
>
> Is there an obvious way around this (or, even better, an existing
> function to do the job that I've just missed)?
>
> Many thanks in advance for any help you can offer (and thanks to Peter
> for writing the library!).
>
> Phil
> _______________________________________________
(Continue reading)

Phil Armitage | 15 Nov 15:01 2006
Picon

Re: selected text

> I believe you should use:
>
> (text text-widget)

Hi,

Thanks for taking the time to reply.

I've not got access to my lisp environment at the moment so I can't
confirm but I thought that would just retrieve the full text contents
of the widget and not the selected text. But maybe I'm mistaken.

Many thanks.
Phil
Bernhard Graf | 17 Nov 17:19 2006
Picon

ltk examples

Hi everybody,

I am quite new to LISP and found ltk as an ideal graphical UI for my LISP tests.
What I am missing are more examples for the ltk functions. To get used to ltk, LISP and TK, I am trying to convert the examples found at http://www.bin-co.com/tcl/tutorial/tk.php to LISP.
Unfortunately, I miss a lot of infos and would be grateful if Peter Herth or someone else would include small examples of each ltk function, similar to the TK examples in the tutorial mentioned above, to the ltk manual.
What I am missing at the moment is e.g. the link between the text function and the scrollbar function. This seems to be somewhat different between TK and ltk, or am I wrong ?

Greetings,
Bernhard Graf

<div>Hi everybody,<div><br class="khtml-block-placeholder"></div>
<div>I am quite new to LISP and found ltk as an ideal graphical UI for my LISP tests.</div>
<div>What I am missing are more examples for the ltk functions. To get used to ltk, LISP and TK, I am trying to convert the examples found at&nbsp;<a href="http://www.bin-co.com/tcl/tutorial/tk.php">http://www.bin-co.com/tcl/tutorial/tk.php</a> to LISP.</div>
<div>Unfortunately, I miss a lot of infos and would be grateful if Peter Herth or someone else would include small examples of each ltk function, similar to the TK examples in the tutorial mentioned above, to the ltk manual.</div>
<div>What I am missing at the moment is e.g. the link between the text function and the scrollbar function. This seems to be somewhat different between TK and ltk, or am I wrong ?</div>
<div><br class="khtml-block-placeholder"></div>
<div>Greetings,</div>
<div>Bernhard Graf<br><div> <span class="Apple-style-span"></span>
</div>
<br>
</div>
</div>
Ken Tilton | 17 Nov 17:56 2006
Picon

Re: ltk examples



On 11/17/06, Bernhard Graf <bgraf <at> adartis.de> wrote:
Hi everybody,

I am quite new to LISP and found ltk as an ideal graphical UI for my LISP tests.
What I am missing are more examples for the ltk functions. To get used to ltk, LISP and TK, I am trying to convert the examples found at  http://www.bin-co.com/tcl/tutorial/tk.php to LISP.
Unfortunately, I miss a lot of infos and would be grateful if Peter Herth or someone else would include small examples of each ltk function, similar to the TK examples in the tutorial mentioned above, to the ltk manual.

Just throwing in an observation from the cheap seats....

Ouch. Sounds like you are asking people to do an awful lot of work. This is open source, so people may respond to specific questions/problems, but wildcard requests like this will go nowhwere. There is an understanding that you will make a certain effort. The first step is to narrow it down...

What I am missing at the moment is e.g. the link between the text function and the scrollbar function.


Now yer talkin! :)

The next step is to post the code /you tried/ and see if folks can fix it. But I realize that would be hard for you as a noob to both Lisp and LTk (and, I gather, Tk itself).

The good news is that I may be all wet. I know Peter does a good job of making LTk work off the shelf. Perhaps he'll add a combined text+scroll widget that does just what you need. In whcih case just ignore me. :)

kt

<div>
<br><br><div>
<span class="gmail_quote">On 11/17/06, Bernhard Graf &lt;<a href="mailto:bgraf <at> adartis.de">bgraf <at> adartis.de</a>&gt; wrote:</span><blockquote class="gmail_quote">
<div>Hi everybody,<div><br></div>
<div>I am quite new to LISP and found ltk as an ideal graphical UI for my LISP tests.</div>
<div>What I am missing are more examples for the ltk functions. To get used to ltk, LISP and TK, I am trying to convert the examples found at&nbsp;
<a href="http://www.bin-co.com/tcl/tutorial/tk.php" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.bin-co.com/tcl/tutorial/tk.php</a> to LISP.</div>
<div>Unfortunately, I miss a lot of infos and would be grateful if Peter Herth or someone else would include small examples of each ltk function, similar to the TK examples in the tutorial mentioned above, to the ltk manual.
</div>
</div>
</blockquote>
<div>
<br>Just throwing in an observation from the cheap seats....<br><br>Ouch. Sounds like you are asking people to do an awful lot of work. This is open source, so people may respond to specific questions/problems, but wildcard requests like this will go nowhwere. There is an understanding that you will make a certain effort. The first step is to narrow it down...
<br>
</div>
<br><blockquote class="gmail_quote"><div><div>What I am missing at the moment is e.g. the link between the text function and the scrollbar function.
</div></div></blockquote>
<div>
<br><br>Now yer talkin! :) <br><br>The next step is to post the code /you tried/ and see if folks can fix it. But I realize that would be hard for you as a noob to both Lisp and LTk (and, I gather, Tk itself).
<br><br>The good news is that I may be all wet. I know Peter does a good job of making LTk work off the shelf. Perhaps he'll add a combined text+scroll widget that does just what you need. In whcih case just ignore me. :)
<br><br>kt<br><br>
</div>
</div>
</div>
Bernhard Graf | 17 Nov 19:06 2006
Picon

ltk examples

Thanks Ken,

I know, documenting all features of ltk is an awful lot of work, but maybe if it is divided into pieces and done by several people it is manageable with not too much effort.
And, as you probably know, Peter is German (as I am, too) and Germans opt for perfection ;-)

By the way, I have meanwhile been able to solve the problem myself, as I found a bigger piece of code that is written using ltk (clmail : http://hocwp.free.fr/glmf/article_clmail/clmail-v2/) and by analyzing this I was able to use the already implemented function "scrolled-text". So Peter has obviously already implemeted it.

As looking at software that is already utilizing ltk is the best way to find out how to use it, do other members of the list know of more examples like clmail ?

Maybe another "rather unspecific" question, but if we get together enough pieces of code (maybe even from each other) this would be the best way to help each other not to "reinvent the wheel")

Greetings,
Bernhard Graf


Bernhard Graf 
Geschäftsführer

adARTIS e.K.
Im Hansengarten 9
D-56412 Hübingen 
Tel: 06439-9123 0 
Fax: 06439-9123 99 

www.adartis.de


<div>Thanks Ken,<div><br class="khtml-block-placeholder"></div>
<div>I know, documenting all features of ltk is an awful lot of work, but maybe if it is divided into pieces and done by several people it is manageable with not too much effort.</div>
<div>And, as you probably know, Peter is German (as I am, too) and Germans opt for perfection ;-)</div>
<div><br class="khtml-block-placeholder"></div>
<div>By the way, I have meanwhile been able to solve the problem myself, as I found a bigger piece of code that is written using ltk (clmail :&nbsp;<a href="http://hocwp.free.fr/glmf/article_clmail/clmail-v2/">http://hocwp.free.fr/glmf/article_clmail/clmail-v2/</a>) and by analyzing this I was able to use the already implemented function "scrolled-text". So Peter has obviously already implemeted it.</div>
<div><br class="khtml-block-placeholder"></div>
<div>As looking at software that is already utilizing ltk is the best way to find out how to use it, do other members of the list know of more examples like clmail ?</div>
<div><br class="khtml-block-placeholder"></div>
<div>Maybe another "rather unspecific" question, but if we get together enough pieces of code (maybe even from each other) this would be the best way to help each other not to "reinvent the wheel")</div>
<div><br class="khtml-block-placeholder"></div>
<div>Greetings,</div>
<div>Bernhard Graf</div>
<br><div> <span class="Apple-style-span"><div><span class="Apple-style-span"><br></span></div>
<div><span class="Apple-style-span"><span class="Apple-style-span"><span class="Apple-style-span">Bernhard Graf</span></span><span class="Apple-style-span"><span class="Apple-style-span">&nbsp;</span></span></span></div>
<div><span class="Apple-style-span"><span class="Apple-style-span">Gesch&auml;ftsf&uuml;hrer</span></span></div>
<div><span class="Apple-style-span"><br></span></div>
<div><span class="Apple-style-span"><span class="Apple-style-span">adARTIS e.K.</span></span></div>
<div><span class="Apple-style-span"><span class="Apple-style-span">Im Hansengarten 9</span></span></div>
<div><span class="Apple-style-span"><span class="Apple-style-span"><span class="Apple-style-span">D-56412 H&uuml;bingen</span></span><span class="Apple-style-span"><span class="Apple-style-span">&nbsp;</span></span></span></div>
<div><span class="Apple-style-span"><span class="Apple-style-span"><span class="Apple-style-span">Tel: 06439-9123 0</span></span><span class="Apple-style-span"><span class="Apple-style-span">&nbsp;</span></span></span></div>
<div><span class="Apple-style-span"><span class="Apple-style-span"><span class="Apple-style-span">Fax: 06439-9123 99</span></span><span class="Apple-style-span"><span class="Apple-style-span">&nbsp;</span></span></span></div>
<div><span class="Apple-style-span"><br></span></div>
<div><span class="Apple-style-span"><span class="Apple-style-span">www.adartis.de</span></span></div>
<div><span class="Apple-style-span"><span class="Apple-style-span"><span class="Apple-style-span"><a href="mailto:bgraf <at> adartis.de">bgraf <at> adartis.de</a></span></span><span class="Apple-style-span"><span class="Apple-style-span">&nbsp;</span></span></span></div>
<br class="Apple-interchange-newline"></span> </div>
<br>
</div>
Ken Tilton | 17 Nov 19:16 2006
Picon

Re: ltk examples



On 11/17/06, Bernhard Graf <bgraf <at> adartis.de> wrote:
Thanks Ken,

I know, documenting all features of ltk is an awful lot of work, but maybe if it is divided into pieces and done by several people it is manageable with not too much effort.
And, as you probably know, Peter is German (as I am, too) and Germans opt for perfection ;-)

By the way, I have meanwhile been able to solve the problem myself, as I found a bigger piece of code that is written using ltk (clmail :  http://hocwp.free.fr/glmf/article_clmail/clmail-v2/) and by analyzing this I was able to use the already implemented function "scrolled-text". So Peter has obviously already implemeted it.

Awesome. I had a feeling.

As looking at software that is already utilizing ltk is the best way to find out how to use it, do other members of the list know of more examples like clmail ?

Maybe another "rather unspecific" question, but if we get together enough pieces of code (maybe even from each other) this would be the best way to help each other not to "reinvent the wheel")

Does LTK still just offer the spinning lines demo? I have a  "lotsa-widgets" demo for my Celtk (once a fork, now wholly independent of Ltk) that tries to cover everything, and the Vasily Margioulas delivered an incredibly comprehensive suite of demos with Cells-Gtk:

 http://common-lisp.net/project/cells-gtk/screenshots.html

Is that what you had in mind? Which ones will you be doing first? :)

Happy to hear things are going perfectly well for you. :)

ken

<div>
<br><br><div>
<span class="gmail_quote">On 11/17/06, Bernhard Graf &lt;<a href="mailto:bgraf <at> adartis.de">bgraf <at> adartis.de</a>&gt; wrote:</span><blockquote class="gmail_quote">
<div>Thanks Ken,<div><br></div>
<div>I know, documenting all features of ltk is an awful lot of work, but maybe if it is divided into pieces and done by several people it is manageable with not too much effort.</div>
<div>And, as you probably know, Peter is German (as I am, too) and Germans opt for perfection ;-)</div>
<div><br></div>
<div>By the way, I have meanwhile been able to solve the problem myself, as I found a bigger piece of code that is written using ltk (clmail :&nbsp;
<a href="http://hocwp.free.fr/glmf/article_clmail/clmail-v2/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://hocwp.free.fr/glmf/article_clmail/clmail-v2/</a>) and by analyzing this I was able to use the already implemented function "scrolled-text". So Peter has obviously already implemeted it.
</div>
</div>
</blockquote>
<div>
<br>Awesome. I had a feeling. <br>
</div>
<br><blockquote class="gmail_quote"><div>
<div>
As looking at software that is already utilizing ltk is the best way to find out how to use it, do other members of the list know of more examples like clmail ?</div>
<div><br></div>
<div>Maybe another "rather unspecific" question, but if we get together enough pieces of code (maybe even from each other) this would be the best way to help each other not to "reinvent the wheel")
</div>
</div></blockquote>
<div>
<br>Does LTK still just offer the spinning lines demo? I have a&nbsp; "lotsa-widgets" demo for my Celtk (once a fork, now wholly independent of Ltk) that tries to cover everything, and the Vasily Margioulas delivered an incredibly comprehensive suite of demos with Cells-Gtk:
<br><br>&nbsp;<a href="http://common-lisp.net/project/cells-gtk/screenshots.html">http://common-lisp.net/project/cells-gtk/screenshots.html</a><br><br>Is that what you had in mind? Which ones will you be doing first? :)<br><br>
Happy to hear things are going perfectly well for you. :)<br><br>ken<br><br>
</div>
</div>
</div>
Bernhard Graf | 22 Nov 17:20 2006
Picon

Re: ltk examples

Hi Ken,

yes, the only demo for ltk is in fact the spinning lines demo. Demo's like the one you provide for your Celtk or Cells-TK would be really great for ltk.
The reason why I use ltk is simply that I want to do it on my PowerBook and Cells and everything related to it seem only be supported on Linux and Windows.
Or has anyone got it working on a Mac as well, either on openMCL or SBCL ?

I am also stuck again with my ltk trials. I know that e.g. "entry" delivers its content as text and this can be used with (text entry_variable) It seems to come from a tktextvariable, according to the source in ltk.lisp.
I was able to display a slider (scale), but I have no idea on how to get its current value. What type is it ? Which method needs to be used to get it ?
If only these informations were given in the ltk documentation, it would be really helpful. Unfortunately, the source seems to be the only documentation. Nice for Lisp geeks, but problematic for people like me ;-)

Greetings,

Bernhard

PS : I heard that you are designing a math tutorial software for kids. If you ever need someone to translate it to German, give me a call ;-)


Am 17.11.2006 um 19:16 schrieb Ken Tilton:



On 11/17/06, Bernhard Graf <bgraf <at> adartis.de> wrote:
Thanks Ken,

I know, documenting all features of ltk is an awful lot of work, but maybe if it is divided into pieces and done by several people it is manageable with not too much effort.
And, as you probably know, Peter is German (as I am, too) and Germans opt for perfection ;-)

By the way, I have meanwhile been able to solve the problem myself, as I found a bigger piece of code that is written using ltk (clmail :  http://hocwp.free.fr/glmf/article_clmail/clmail-v2/) and by analyzing this I was able to use the already implemented function "scrolled-text". So Peter has obviously already implemeted it.

Awesome. I had a feeling.

As looking at software that is already utilizing ltk is the best way to find out how to use it, do other members of the list know of more examples like clmail ?

Maybe another "rather unspecific" question, but if we get together enough pieces of code (maybe even from each other) this would be the best way to help each other not to "reinvent the wheel")

Does LTK still just offer the spinning lines demo? I have a  "lotsa-widgets" demo for my Celtk (once a fork, now wholly independent of Ltk) that tries to cover everything, and the Vasily Margioulas delivered an incredibly comprehensive suite of demos with Cells-Gtk:

 http://common-lisp.net/project/cells-gtk/screenshots.html

Is that what you had in mind? Which ones will you be doing first? :)

Happy to hear things are going perfectly well for you. :)

ken

_______________________________________________
ltk-user site list


Bernhard Graf 
Geschäftsführer

adARTIS e.K.
Im Hansengarten 9
D-56412 Hübingen 
Tel: 06439-9123 0 
Fax: 06439-9123 99 

www.adartis.de


<div>Hi Ken,<div><br class="khtml-block-placeholder"></div>
<div>yes, the only demo for ltk is in fact the spinning lines demo. Demo's like the one you provide for your Celtk or Cells-TK would be really great for ltk.</div>
<div>The reason why I use ltk is simply that I want to do it on my PowerBook and Cells and everything related to it seem only be supported on Linux and Windows.</div>
<div>Or has anyone got it working on a Mac as well, either on openMCL or SBCL ?</div>
<div><br class="khtml-block-placeholder"></div>
<div>I am also stuck again with my ltk trials. I know that e.g. "entry" delivers its content as text and this can be used with (text entry_variable) It seems to come from a tktextvariable, according to the source in ltk.lisp.</div>
<div>I was able to display a slider (scale), but I have no idea on how to get its current value. What type is it ? Which method needs to be used to get it ?</div>
<div>If only these informations were given in the ltk documentation, it would be really helpful. Unfortunately, the source seems to be the only documentation. Nice for Lisp geeks, but problematic for people like me ;-)</div>
<div><br class="khtml-block-placeholder"></div>
<div>Greetings,</div>
<div><br class="khtml-block-placeholder"></div>
<div>Bernhard</div>
<div><br class="khtml-block-placeholder"></div>
<div>PS : I heard that you are designing a math tutorial software for kids. If you ever need someone to translate it to German, give me a call ;-)</div>
<div><br class="khtml-block-placeholder"></div>
<div><br class="khtml-block-placeholder"></div>
<div>
<div>
<div>Am 17.11.2006 um 19:16 schrieb Ken Tilton:</div>
<br class="Apple-interchange-newline"><blockquote type="cite">
<br><br><div>
<span class="gmail_quote">On 11/17/06, Bernhard Graf &lt;<a href="mailto:bgraf <at> adartis.de">bgraf <at> adartis.de</a>&gt; wrote:</span><blockquote class="gmail_quote"> <div>Thanks Ken,<div><br></div>
<div>I know, documenting all features of ltk is an awful lot of work, but maybe if it is divided into pieces and done by several people it is manageable with not too much effort.</div> <div>And, as you probably know, Peter is German (as I am, too) and Germans opt for perfection ;-)</div>
<div><br></div>
<div>By the way, I have meanwhile been able to solve the problem myself, as I found a bigger piece of code that is written using ltk (clmail :&nbsp; <a href="http://hocwp.free.fr/glmf/article_clmail/clmail-v2/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://hocwp.free.fr/glmf/article_clmail/clmail-v2/</a>) and by analyzing this I was able to use the already implemented function "scrolled-text". So Peter has obviously already implemeted it. </div>
</div>
</blockquote>
<div>
<br>Awesome. I had a feeling. <br>
</div>
<br><blockquote class="gmail_quote"><div>
<div> As looking at software that is already utilizing ltk is the best way to find out how to use it, do other members of the list know of more examples like clmail ?</div>
<div><br></div>
<div>Maybe another "rather unspecific" question, but if we get together enough pieces of code (maybe even from each other) this would be the best way to help each other not to "reinvent the wheel") </div>
</div></blockquote>
<div>
<br>Does LTK still just offer the spinning lines demo? I have a&nbsp; "lotsa-widgets" demo for my Celtk (once a fork, now wholly independent of Ltk) that tries to cover everything, and the Vasily Margioulas delivered an incredibly comprehensive suite of demos with Cells-Gtk: <br><br>&nbsp;<a href="http://common-lisp.net/project/cells-gtk/screenshots.html">http://common-lisp.net/project/cells-gtk/screenshots.html</a><br><br>Is that what you had in mind? Which ones will you be doing first? :)<br><br> Happy to hear things are going perfectly well for you. :)<br><br>ken<br><br>
</div>
</div>
<div>_______________________________________________</div>
<div>ltk-user site list</div>
<div><a href="mailto:ltk-user <at> common-lisp.net">ltk-user <at> common-lisp.net</a></div>
<div><a href="http://common-lisp.net/mailman/listinfo/ltk-user">http://common-lisp.net/mailman/listinfo/ltk-user</a></div> </blockquote>
</div>
<br><div> <span class="Apple-style-span"><div><span class="Apple-style-span"><br></span></div>
<div><span class="Apple-style-span"><span class="Apple-style-span"><span class="Apple-style-span">Bernhard Graf</span></span><span class="Apple-style-span"><span class="Apple-style-span">&nbsp;</span></span></span></div>
<div><span class="Apple-style-span"><span class="Apple-style-span">Gesch&auml;ftsf&uuml;hrer</span></span></div>
<div><span class="Apple-style-span"><br></span></div>
<div><span class="Apple-style-span"><span class="Apple-style-span">adARTIS e.K.</span></span></div>
<div><span class="Apple-style-span"><span class="Apple-style-span">Im Hansengarten 9</span></span></div>
<div><span class="Apple-style-span"><span class="Apple-style-span"><span class="Apple-style-span">D-56412 H&uuml;bingen</span></span><span class="Apple-style-span"><span class="Apple-style-span">&nbsp;</span></span></span></div>
<div><span class="Apple-style-span"><span class="Apple-style-span"><span class="Apple-style-span">Tel: 06439-9123 0</span></span><span class="Apple-style-span"><span class="Apple-style-span">&nbsp;</span></span></span></div>
<div><span class="Apple-style-span"><span class="Apple-style-span"><span class="Apple-style-span">Fax: 06439-9123 99</span></span><span class="Apple-style-span"><span class="Apple-style-span">&nbsp;</span></span></span></div>
<div><span class="Apple-style-span"><br></span></div>
<div><span class="Apple-style-span"><span class="Apple-style-span">www.adartis.de</span></span></div>
<div><span class="Apple-style-span"><span class="Apple-style-span"><span class="Apple-style-span"><a href="mailto:bgraf <at> adartis.de">bgraf <at> adartis.de</a></span></span><span class="Apple-style-span"><span class="Apple-style-span">&nbsp;</span></span></span></div>
<br class="Apple-interchange-newline"></span> </div>
<br>
</div>
</div>
Ken Tilton | 22 Nov 18:34 2006
Picon

Re: ltk examples



On 11/22/06, Bernhard Graf <bgraf <at> adartis.de> wrote:
Hi Ken,

yes, the only demo for ltk is in fact the spinning lines demo. Demo's like the one you provide for your Celtk or Cells-TK would be really great for ltk.
The reason why I use ltk is simply that I want to do it on my PowerBook and Cells and everything related to it seem only be supported on Linux and Windows.

Nope. :)

Or has anyone got it working on a Mac as well, either on openMCL or SBCL ?

Yep. :)  I had the whole thing working on OpenMCL a while back (when it was atop Freeglut) and someone helping now is running it on OS X via SBCL.

I am also stuck again with my ltk trials. I know that e.g. "entry" delivers its content as text and this can be used with (text entry_variable) It seems to come from a tktextvariable, according to the source in ltk.lisp.
I was able to display a slider (scale), but I have no idea on how to get its current value. What type is it ? Which method needs to be used to get it ?
If only these informations were given in the ltk documentation, it would be really helpful. Unfortunately, the source seems to be the only documentation. Nice for Lisp geeks, but problematic for people like me ;-)

I think one meta-help I can give you is to take something like your scale issue and look it up on the tcl/tk site itself. I used the ActiveTcl page itself:

   http://aspn.activestate.com/ASPN/docs/ActiveTcl/8.4/at.pkg_index.html

Find out how a tcl user would get the scale value and work backwards, searching the Ltk source for whatever that is. Hang on -- had a flash -- it might even be that the path to the scale is the variable you read (going on some memory, some common sense) so you just need to fo the LTk to read the variable .this.that.my-scale

Back to my meta-help, I think the LTk doc itself does recommend using Tcl/Tk doc in conjunction with LTk examples/doc/source. Kind of a delicat balancing act where you have to guess if you have a Lisp, LTk, or Tk issue.



PS : I heard that you are designing a math tutorial software for kids. If you ever need someone to translate it to German, give me a call ;-)

OK. I almost wrote "the whole shebang" earlier, then backed off because of the slanginess. Know that one? :)

kt
<div>
<br><br><div>
<span class="gmail_quote">On 11/22/06, Bernhard Graf &lt;<a href="mailto:bgraf <at> adartis.de">bgraf <at> adartis.de</a>&gt; wrote:</span><blockquote class="gmail_quote">
<div>Hi Ken,<div><br></div>
<div>yes, the only demo for ltk is in fact the spinning lines demo. Demo's like the one you provide for your Celtk or Cells-TK would be really great for ltk.</div>
<div>The reason why I use ltk is simply that I want to do it on my PowerBook and Cells and everything related to it seem only be supported on Linux and Windows.
</div>
</div>
</blockquote>
<div>
<br>Nope. :) <br>
</div>
<br><blockquote class="gmail_quote"><div><div>Or has anyone got it working on a Mac as well, either on openMCL or SBCL ?
</div></div></blockquote>
<div>
<br>Yep. :)&nbsp; I had the whole thing working on OpenMCL a while back (when it was atop Freeglut) and someone helping now is running it on OS X via SBCL.<br>
</div>
<br><blockquote class="gmail_quote">
<div>
<div>I am also stuck again with my ltk trials. I know that e.g. "entry" delivers its content as text and this can be used with (text entry_variable) It seems to come from a tktextvariable, according to the source in 
ltk.lisp.</div>
<div>I was able to display a slider (scale), but I have no idea on how to get its current value. What type is it ? Which method needs to be used to get it ?</div>
<div>If only these informations were given in the ltk documentation, it would be really helpful. Unfortunately, the source seems to be the only documentation. Nice for Lisp geeks, but problematic for people like me ;-)
</div>
</div>
</blockquote>
<div>
<br>I think one meta-help I can give you is to take something like your scale issue and look it up on the tcl/tk site itself. I used the ActiveTcl page itself: <br><br>&nbsp;&nbsp; <a href="http://aspn.activestate.com/ASPN/docs/ActiveTcl/8.4/at.pkg_index.html">
http://aspn.activestate.com/ASPN/docs/ActiveTcl/8.4/at.pkg_index.html</a><br><br>Find out how a tcl user would get the scale value and work backwards, searching the Ltk source for whatever that is. Hang on -- had a flash -- it might even be that the path to the scale is the variable you read (going on some memory, some common sense) so you just need to fo the LTk to read the variable .this.that.my-scale
<br><br>Back to my meta-help, I think the LTk doc itself does recommend using Tcl/Tk doc in conjunction with LTk examples/doc/source. Kind of a delicat balancing act where you have to guess if you have a Lisp, LTk, or Tk issue.
<br><br><br>
</div>
<blockquote class="gmail_quote"><div>
<div><br></div>
<div>PS : I heard that you are designing a math tutorial software for kids. If you ever need someone to translate it to German, give me a call ;-)
</div>
</div></blockquote>
<div>
<br>OK. I almost wrote "the whole shebang" earlier, then backed off because of the slanginess. Know that one? :)<br><br>kt<br>
</div>
</div>
</div>
Nicolas Neuss | 22 Nov 21:04 2006
Picon

Re: ltk examples

From: Nicolas Neuss <neuss <at> mathematik.uni-karlsruhe.de>
Subject: Re: [ltk-user] ltk examples
To: Talk about Ltk the Lisp Toolkit <ltk-user <at> common-lisp.net>
Date: 22 Nov 2006 18:50:26 +0100
Organization: IPM

Bernhard Graf <bgraf <at> adartis.de> writes:

> Hi Ken,
> 
> yes, the only demo for ltk is in fact the spinning lines demo. Demo's
> like the one you provide for your Celtk or Cells-TK would be really great
> for ltk.  The reason why I use ltk is simply that I want to do it on my
> PowerBook and Cells and everything related to it seem only be supported
> on Linux and Windows.  Or has anyone got it working on a Mac as well,
> either on openMCL or SBCL ?
> 
> I am also stuck again with my ltk trials. I know that e.g. "entry"
> delivers its content as text and this can be used with (text
> entry_variable) It seems to come from a tktextvariable, according to the
> source in ltk.lisp.  I was able to display a slider (scale), but I have
> no idea on how to get its current value. What type is it ? Which method
> needs to be used to get it ?  If only these informations were given in
> the ltk documentation, it would be really helpful. Unfortunately, the
> source seems to be the only documentation. Nice for Lisp geeks, but
> problematic for people like me ;-)
> 
> Greetings,
> 
> Bernhard
> 
> PS : I heard that you are designing a math tutorial software for  kids. If
> you ever need someone to translate it to German, give me a  call ;-)

I also asked once about some problem on this list recently, and only Ken
answered.  His answer did not solve my problem, and I decided that other
things were more important to me at the moment.  I am somewhat astonished
that this list seems so abandoned by LTk developers and users.  Maybe you
could find more help at comp.lang.lisp?

Nicolas

Gmane