[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

inferno tk differences/features



[i tried mailing this to infernosupport@lucent.com, but has bounced
several times, so i'm sending it to the list instead. for information
of the inferno people, the most recent bounce message i got was :
  From: nuucp@ihig2.firewall.lucent.com
  Date: Mon, 23 Sep 1996 10:10:32 -0500
  Subject: UUCP command execution failed
  Apparently-To: ohm.york.ac.uk!rog@ihig2.firewall.lucent.com

  Your UUCP remote execution request 'igbA36a6' (9/23-10:10:32)
  failed on system 'ihig2'.
  Your request: rmail lucent.com!infernosupport
  Reason for failure: command exited with exit code 1
]

i've encountered a number of differences between the Tk 4.0 docs
and the inferno Tk implementation that don't seem to be mentioned
in the Tk appendix. please bear in mind that i haven't used Tk before;
these comments don't relate to any implementation of Tk other than
inferno's, and i haven't referred to any documentation except that
provided in the Tk 4.1 release and that provided with inferno, so
some of these points are probably completely misguided.

the bracket notation doesn't seem to work at all.
the documentation seems to imply that :
   pack [button .b -text hello]
should evaluate {button .b -text hello} as a command string
and pass the resulting value (.b) as an argument to pack.
this doesn't happen.

canvas configure with no arguments doesn't return a list of all
possible options (i think this probably applies to all configures)

the image create command doesn't return the name of the newly created
image.

in image(n), under image create, it states :
  If an image already exists by the given name then it is replaced
  with the new image and any instances of that image will redisplay
  with the new contents.
this doesn't appear to happen (any current instances remain the same)

listbox doesn't support extended mode. browse mode doesn't appear to
allow deselection of entries. do key modifications to mouse events
work in listboxes ?

dragging the mouse in a listbox entry when in multiple mode changes
the selection repeatedly (once for every mouse move event)

the canvas gettags command doesn't seem to work correctly.
it just returns the tag that you've asked it to get.
if there are many items in the canvas that contain a
particular tag t, {.canvas gettags t} returns a list
containing 't' replicated by the number of items that
contain it, where according to the man page, it should return
all the tags associated with the first item in the display
list containing t.

i hope this is of some use,

  rog.

p.s. what's the status on posting source to modified commands to the list ?
i've changed wish slightly, so that in interactive mode it
predefines a channel 'echo' so that one can see some feedback
from actions. if it was alright, i'd make this available to
others who might find it useful.