Sending events from lisp outside ltk context
Orm Finnendahl
orm.finnendahl at selma.hfmdk-frankfurt.de
Sun Feb 12 17:07:06 UTC 2023
Hi,
after creating a ltk window with the following code:
(ltk:with-ltk ()
(let ((c (make-instance 'ltk:canvas :width 500 :height 500)))
(ltk:pack c)
(let ((txt (ltk:create-text c 200 100 "lorem ipsum dolor sit amet consectetur adipiscing elit"))))))
Is there a way to change the text in the textbox from the outside?
Storing the canvas instance in a global variable and using
#'ltk:itemconfigure on it doesn't work.
I'd like to somehow hook into the main loop in order to change items
from the lisp process outside of the with-ltk within the ltk context,
like calling an event queue or sending events to the wish event
handler which triggers the execution of functions within the ltk
context.
Any help is appreciated!
--
Orm
More information about the ltk-user
mailing list