[mercury-users] Tcl/Tk

Thomas Conway conway at cs.mu.OZ.AU
Wed Nov 3 10:13:33 AEDT 1999


On Tue, Nov 02, 1999 at 11:56:18PM EST, Robert Ernst Johann JESCHOFNIK wrote:
> Hello everyone.
> 
> I have just been having a bit of a play with the Tcl/Tk stuff from the
> extra's package that came with 0.8.1.. I know virtually nothing about how
> this stuff works, I've just been adapting code from the example.
> 
> I have just one question.. how do you create a window with a title that is
> NOT "toplevel0" and put stuff in it? I can make a window with an arbitary
> title, but I can't put anything into it. I need to create a new window,
> which is given the title "toplevel0". Even the example provided with the
> library suffered from this problem.. it makes a mimimised window called
> "calc", and the calculator itself is in "toplevel0".

The name of the window is set by a "wm" command, and doesn't fit into
the predicate for creating the window. The reason is that you can create
the toplevel window, and its children, but until the next update they're
not mapped and the wm command fails (or at least this was the case in
the older version (pre 8.0) that I was using when I first wrote the code).

FWIW, I've got a partial gtk binding which you can try if you like.

Thomas
-- 
 Thomas Conway )O+     Every sword has two edges.
     Mercurian            <conway at cs.mu.oz.au>
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list