From: Hidetoshi NAGAI Date: 2006-01-13T02:05:37+09:00 Subject: Re: TK custom events. From: "PWR" Subject: Re: TK custom events. Date: Thu, 12 Jan 2006 23:43:05 +0900 Message-ID: <1137076826.731074.204100@o13g2000cwo.googlegroups.com> > The idea is to avoid a solution which involves directly calling Tk > methods from the other thread in case there are any thread safety > issues. I may be being over cautious. Don't worry about that. :-) All Tk calls out of the 'Tk.mainloop' thread are automatically serialized on the event queue and done in the 'Tk.mainloop'. That is not a work of a user, but a work of 'tcltklib'. Even though so, if you want to use your own event, please try TkVirtualEvent and Tk.event_generate. If those cannot satisfy you, you may have to write C functions. If so, please read how to treat TclTkIp#invoke method on 'tcltklib.c'. -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)