From orm.finnendahl at selma.hfmdk-frankfurt.de Sun Feb 12 17:07:06 2023 From: orm.finnendahl at selma.hfmdk-frankfurt.de (Orm Finnendahl) Date: Sun, 12 Feb 2023 18:07:06 +0100 Subject: Sending events from lisp outside ltk context Message-ID: 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