Hi,
Based on the docstring of with-nodgui, it seems like I should be able to do something like this:
(with-nodgui ()
(setf *saved-tk* *tk*)
;; ...more stuff...
)
(with-nodgui (:stream *saved-tk*)
(fire-event *saved-widget* "<<MyVirtualEvent>>"))
But when I try to do something like that, I get the following error:
Unknown &KEY argument: :STREAM
[Condition of type SB-EXT:UNKNOWN-KEYWORD-ARGUMENT]
Restarts:
0: [CONTINUE] Ignore all unknown keywords
1: [RETRY] Retry SLY mREPL evaluation request.
2: [*ABORT] Return to SLY's top level.
3: [ABORT] abort thread (#<THREAD tid=2628163 "sly-channel-1-mrepl-remote-1" RUNNING {1000F90653}>)
Backtrace:
0: (START-WISH :STREAM #<WIDGET {100C6D69A3}>) [more]
1: ((LAMBDA NIL :IN CALL-WITH-NODGUI))
2: (CALL-WITH-NODGUI #<FUNCTION (LAMBDA NIL :IN STEPSEQ-ACTIVE-STEP) {100A604E1B}> :STREAM #<WIDGET {100C6D69A3}>)
3: (SB-INT:SIMPLE-EVAL-IN-LEXENV (SETF (STEPSEQ-ACTIVE-STEP *TMP-CANVAS*) 1) #<NULL-LEXENV>)
4: (EVAL (SETF (STEPSEQ-ACTIVE-STEP *TMP-CANVAS*) 1))
5: ((LAMBDA NIL :IN SLYNK-MREPL::MREPL-EVAL-1))
[...]
Basically, I need to be able to fire a virtual event from a separate thread so that I can ensure the GUI updates based on data that is being changed outside of the GUI. Is something like this the best way to go about doing that?
P.S. I may have a few more bug reports for you in the future as I'm currently working on a project using Nodgui for its GUI.