Sujet : Re: Mirroring events
De : user1405 (at) *nospam* newsgrouper.org.uk.invalid (Shaun Kulesa)
Groupes : comp.lang.tclDate : 28. Dec 2024, 16:49:00
Autres entêtes
Message-ID : <1735400940-1405@newsgrouper.org.uk>
References : 1 2
User-Agent : Newsgrouper/0.7.0
JeffSmith <
user9@newsgrouper.org.uk.invalid> posted:
Shaun Kulesa <user1405@newsgrouper.org.uk.invalid> posted:
I want to mirror events happening on one tk window to another. I know I can execute these the events using `event generate`.
But I am unsure how to read all events being handled in a window. I have looked at things like the dooneevent and the history command.
Is there a way to record all the previous executed events?
From the wiki, this may help
https://wiki.tcl-lang.org/page/playtkl%2C+testing+Tk+apps+and+playing+macros
Kind Regards
Jeff
Thanks. This seems like a good path, I made a new function playtkl::getnextevent so I can get a live feed of the events.