Oleg Batrashev wrote:
On Tue, Apr 29, 2008 at 8:48 PM, Oleg Batrashev <[EMAIL PROTECTED]> wrote:
Hi,
Is there any way to add action for execution in QTk window thread? I
looked through QTk and Tk documentation and it seems that each window
should have Tk.listener for event serialization (my guess) but I do
not know how to get it.
After looking into QTk.oz and QTkDevel.oz I figured out that it is
possible to send specific message to "W.toplevel.port" but I suspect
it is not the best method to use
Yes, this is certainly an undocumented feature of QTk. But why do want
to execute code in the window thread, anyway?
Note that threads are really cheap in Oz. If you want to use an active
object that has a GUI element, it should not be a problem to have two
threads: one for messages from the outside and one for the GUI event
handling.
Wolfgang
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users