New Tk interface

Guido.van.Rossum@cwi.nl
Tue, 28 Jun 1994 15:45:09 +0200

I've placed a new version of Steen Lumholt's Tk interface on our ftp
site (URL: ftp://ftp.cwi.nl/pub/python/tkinter.tar.gz). Note that for
some demos (MimeViewer and mbox) you need a few new library modules --
ftp newlib.tar.gz as well. From the ChangeLog file:

Mon Jun 27 22:50:14 1994 Steen Lumholt (lumholt@login.dkuug.dk)

* Tkinter.py: [Suggested by Richard Neitzel]
(Misc): New methods wait_variable = waitvar, wait_window,
wait_visibility and register = _register.

* Tkinter.py: [patch by Guido van Rossum]
(Menu.index): return int or None, not string
(Widget.__getitem__): use splitlist, not split

Sun Jun 26 02:19:01 1994 Steen Lumholt (lumholt@login.dkuug.dk)

* README: Doc fix.

* Dialog.py: tk_dialog wrapper widget.

* Tkinter.py: (Widget) Code moved from __init__ to _setup.

Sat Jun 25 00:27:24 1994 Steen Lumholt (lumholt@login.dkuug.dk)

* Tkinter.py (Misc): selection_own and selection_own_get methods.
(Misc.winfo_toplevel): Return widget.

* kill.py: New demo.

* Tkinter.py: tk_menuBar method moved from Menu class to
Misc class.
(Scrollbar.get): Bug fix; self._getints not self.tk.getints.

Fri Jun 24 17:42:16 1994 Steen Lumholt (lumholt@login.dkuug.dk)

* Tkinter.py
(Variable, StringVar, IntVar, BooleanVar): New classes.

* mklibapp: New shell script.

* Setup.in: moreButtons Tk extension support.

* tkintermodule.c (Tkapp_New): Remove #ifdef WITH_APPINIT.

* appinit.c (Tcl_AppInit): New file and function.

* Tkinter.py:
(Button): Dummy args in tk_* methods.
(Studbutton, Tributton): New widget by <tnb2d@cs.virginia.edu>;
morebuttons extension.

Thu Jun 23 22:22:43 1994 Steen Lumholt (lumholt@login.dkuug.dk)

* tkintermodule.c (FileHandler): Make arg a tuple; bug found
by <tnb2d@cs.virginia.edu>. Call the Python file handler
function with (file, mask) argument. Fix a few of my refcnt bugs.

Thu Jun 23 09:37:43 1994 Guido van Rossum (guido@voorn.cwi.nl)

* Tkinter.py
(Widget): generalized config(); added keys().
(Canvas): added addtag_xxx and find_xxx functions; generalized
itemconfig().

Tue Jun 21 13:40:31 1994 Guido van Rossum (guido@voorn.cwi.nl)

* Tkinter.py: some tidying up.
(Misc.after): arrange to call deletecommand after it is called.
(Canvas.itemconfig): generalized to support all forms.
(Canvas.find): returns a list of integers instead of strings.

Mon Jun 20 15:46:17 1994 Guido van Rossum (guido@voorn.cwi.nl)

* Tkinter.py (Canvas._create): call _flatten earlier.

Mon Jun 20 15:37:08 1994 Guido van Rossum (guido@voorn.cwi.nl)

* Tkinter.py (Canvas): made create_ methods return the item id;
flatten argument list to _create before passing on to tk.call;
_do should return a value.

Mon Jun 20 13:54:03 1994 Guido van Rossum (guido@voorn.cwi.nl)

* Tkinter.py
Added dictionary mapping names to children, and _name attribute.
Renamed tkerror to _tkerror, default_root to _default_root.
(_substitute, _subst_prefix): move back into class Misc; added
widget Event attribute.
Added functions that return widgets or widget lists:
winfo_children; focus_get; grab_current.
(Pack.slaves, Place.slaves): return Widget objects instead of
pathnames.
Renamed __del__() to destroy() (because of circular refs, __del__
won't ever be called).
Added some names with explicit _set: focus_set, focus_default_set,
grab_set.
Added focus_default_none.
(Misc._getints): use tk.splitlist() instead of tk.split(), return
None if string empty.

* tst.py: fixed initial fill color of square.

* README: added note to copy Setup.in to Setup; added pointer to
newlib.tar.gz for demos.

--Guido van Rossum, CWI, Amsterdam <Guido.van.Rossum@cwi.nl>
URL: <http://www.cwi.nl/cwi/people/Guido.van.Rossum.html>