Re: Use Tk under tkined

Juergen Schoenwaelder (schoenw@ibr.cs.tu-bs.de)
Wed, 14 Jun 1995 13:28:52 +0200

Hi!

jsong@nlc.com (James Song) said:

James> I need develop some GUIs that cannot be impletemented by using
James> tkined widgets. I don't think that I can use tk under tkined.
James> I tried once and it did not work. I wonder if it is because I
James> just don't know how or it cannot done at all. I would
James> appreciate any help.

Can you give an example what you want to do? There are many different
ways to extend the Tkined user interface. Some examples:

1. More functionality in the Tkined drawing area.

You must hack the Tkined sources to do this. This requires to
understand how the internals work.

2. Fancier dialogs.

There are two ways to reach this goal. You can either add some new
dialogs by definition additional Dialog::<foo> procs and calling
them from an application script. However, this is still limiting
because you do not get full control over the widgets in the
dialog. The second way is to run the application in a Tk based
interpreter, e.g. use scwish instead of scotty. This allows to
access Tkined in the usual way (using ined commands) and to write
fancy dialogs with all the widgets available in Tk.

3. Applications that interact with Tkined.

You can also write a complete new application as a scwish script
with its own user interface that just interacts with Tkined to get
or save some map related information. An example could be a
graphical MIB browser that can run stand alone but is also able to
read the list of selected hosts from the Tkined editor.

The way you add your own GUI code to Tkined depends on what you are
planing to do. The points above should give an indication about some
ways to achieve the result.

Juergen