Guido van Rossum
40f7a55608
Get rid of bogus binding of <Delete> to a function that deletes the next
...
character (this is already a built-in binding now).
1996-10-24 18:34:36 +00:00
Guido van Rossum
149574767c
Added support for floating point resolution to Scale.get().
1996-10-23 14:16:28 +00:00
Fred Drake
0c373691ae
(Tkinter.py): Fixed bug in re-implementation of OptionMenu.
1996-10-21 17:09:31 +00:00
Guido van Rossum
28574b557b
(Fred Drake:) Re-wrote the OptionMenu class to allow access to a real
...
Menu object via om['menu'] -- this is necessary to use a post-command
with an OptionMenu. The API has not changed.
1996-10-21 15:16:51 +00:00
Fred Drake
cab3c3b8d4
(Tkinter.py): Improve application basename determination to make .py and
...
.pyc extensions completely equivelent when locating the "profile"
which should be read on startup.
1996-10-06 17:55:20 +00:00
Fred Drake
3faf9b4d48
(Tkinter.py): Fixed dumb typo in Misc.tk_setPalette().
1996-10-04 19:23:04 +00:00
Fred Drake
3c602d7d0c
(Tkinter.py): Many revisions for Tk 4.X: Added clipboard support, updated
...
selection interface, handle the -displayof option intelligently in
many places. Added "wm colormapwindows" and "winfo colormapfull"
support. Removed "focus default" and "focus none" method: these are
not in Tk 4.X.
1996-09-27 14:06:54 +00:00
Fred Drake
e9c515adc7
(Canvas.py): Added definition of CanvasItem.cget() as suggested by
...
Nils Fischbeck.
1996-09-26 20:21:26 +00:00
Guido van Rossum
6e8ec59eb4
Implement lower by calling lower, not lift.
1996-09-11 14:25:41 +00:00
Guido van Rossum
6b7a7e9fe0
Bug fixes in index&icursor suggested by Nils Fischbeck.
1996-09-11 14:23:43 +00:00
Guido van Rossum
688bbfc217
simpler version of the previous fix
1996-09-10 12:39:26 +00:00
Guido van Rossum
8535b29f39
compatibility changes suggested by Jack,
...
for tk_menuBar and tk_bindForTraversal
(i.e. don't call these for Tk >= 4.1)
1996-09-10 12:36:34 +00:00
Guido van Rossum
5c1d1ee8a8
Change to allow keyword args for Group,
...
suggested by Nils Fischbeck, adapted by Fred
1996-09-06 21:09:31 +00:00
Guido van Rossum
42b78e6441
Fixed Entry.select_from() to acually call the "select from" widget
...
command instead of the non-existant "select set". (Fred)
1996-09-06 14:20:23 +00:00
Guido van Rossum
2caac73aa6
Added Menu.insert*() methods [Fred]
1996-09-05 16:46:31 +00:00
Guido van Rossum
e1a7a3b3b3
Add initial values to variables to avoid crash in __del__
1996-09-05 16:45:49 +00:00
Guido van Rossum
5c8c91bbc5
Changes for Canvas by Fred
1996-08-22 23:18:09 +00:00
Guido van Rossum
c417ef8e57
Added a small test program.
1996-08-21 23:38:59 +00:00
Guido van Rossum
5468a7b76b
stupid typo in latest fix ('Name' should be 'name')
1996-08-08 18:31:42 +00:00
Guido van Rossum
524e9a450b
Need to import * from types
1996-08-08 18:31:11 +00:00
Guido van Rossum
9afdabffa9
Add missing close parenthesis.
1996-07-30 20:16:21 +00:00
Guido van Rossum
053313a507
Change to use keyword args instead of dicts
1996-07-30 18:35:38 +00:00
Guido van Rossum
c8b4791d9e
Two independent changes:
...
- accept empty string from focus_get
- map coords() return value through getdouble and splitlist
1996-07-30 16:31:32 +00:00
Guido van Rossum
ad8b3baa91
Restore the capability to pass a class (usually Pack) as an option to widget
...
creation; no longer support this for the config method.
1996-07-21 03:05:05 +00:00
Guido van Rossum
17f2b2dfed
Don't use tktools, dummy! Reworded test message slightly.
1996-07-21 02:20:06 +00:00
Guido van Rossum
421bb0e389
fix canvas bind commands
1996-07-21 02:19:32 +00:00
Guido van Rossum
990e619b45
new simple dialog module, incompatible
1996-06-17 17:14:46 +00:00
Guido van Rossum
72e316428f
made it work again with changed Tkinter
1996-05-28 23:15:20 +00:00
Guido van Rossum
0978f993e3
Major overhaul:
...
- Support ~[user] expansion.
- Remember last directory and pattern; optional 'key' argument
specifies different memory locations.
- Absolutify pathnames if possible.
- WM close event cancels the dialog.
- First arg to go() can be either a directory or a file (renamed to
dir_of_file); defaults to current directory.
1996-05-28 23:14:36 +00:00
Guido van Rossum
51b708ab61
don't export selection
1996-05-28 23:10:30 +00:00
Guido van Rossum
422cc7ffec
more changes copied from Grail
1996-05-21 20:30:07 +00:00
Guido van Rossum
63e39ae933
Made Place.info == Pack.info
1996-05-16 17:53:48 +00:00
Guido van Rossum
a5f875f504
Yet another mini fix to pack/grid info.
1996-05-16 17:50:07 +00:00
Guido van Rossum
3626999377
Some more changes from the net... Typos, 4.0/4.1 issues, new tkButtonInvoke().
1996-05-16 17:11:27 +00:00
Guido van Rossum
37dcab197c
Resync with Grail's Tkinter.py.
1996-05-16 16:00:19 +00:00
Guido van Rossum
efa3143abd
add keyword args to CanvasItem class __init__
1996-01-26 17:45:07 +00:00
Jack Jansen
8324836329
Disable pythons own eventhandling on the mac.
1995-11-10 14:49:44 +00:00
Jack Jansen
10d0f8fc40
Renamed module tkinter to _tkinter
1995-10-23 14:36:05 +00:00
Guido van Rossum
46f92d2eba
add Listbox.activate()
1995-10-11 17:41:00 +00:00
Guido van Rossum
b61b28b07d
added listbox selection modes
1995-10-11 17:40:37 +00:00
Guido van Rossum
a1db48b75b
fix Menu.add_command etc.
1995-10-09 22:37:28 +00:00
Guido van Rossum
f7f79ac0c8
better version sanity checks; get rid of Widget.unbind_class()
1995-10-07 19:08:37 +00:00
Guido van Rossum
96ebbd3082
new after options; text.search; new image methods
1995-09-30 17:05:26 +00:00
Guido van Rossum
71b1a90bad
added getitem/setitem to Image class; changed call wrapping (again)
1995-09-18 21:54:35 +00:00
Guido van Rossum
aad8692328
Initial revision
1995-09-07 19:22:38 +00:00
Guido van Rossum
a5773ddb23
move constants to Tkconstants; added some; overridable error reporting; fix typo in propagate
1995-09-07 19:22:00 +00:00
Guido van Rossum
b9e39c8861
Filter button should set selection's directory, too
1995-09-01 20:36:47 +00:00
Guido van Rossum
bf4d8f9d87
added OptionMenu class (tk_optionMenu interface)
1995-09-01 20:35:37 +00:00
Guido van Rossum
ac4f8d3198
Initial revision
1995-08-29 23:46:35 +00:00
Guido van Rossum
1d59df28ac
added select_present and select_range to Entry widget
1995-08-11 14:21:06 +00:00
Guido van Rossum
a22a70aaff
added some missing constants
1995-08-04 03:51:48 +00:00
Guido van Rossum
35f67fb552
keyword arguments; redid Photo image class; other goodies
1995-08-04 03:50:29 +00:00
Guido van Rossum
9455063d1e
keyword parameter changes
1995-08-04 03:49:39 +00:00
Guido van Rossum
761c5aba8e
Tk 4.0 and Tcl 7.4 are now standard
1995-07-14 15:29:10 +00:00
Guido van Rossum
903abee9c4
fix typo in tag_nextrange
1995-03-20 15:09:13 +00:00
Guido van Rossum
7e9394ab97
add TkVersion,TclVersion; don't drop in debugger
1995-03-17 16:21:33 +00:00
Guido van Rossum
5505d56f08
Fixed 'propagate' method
1994-12-30 17:16:35 +00:00
Guido van Rossum
780044f27a
added option interface
1994-10-20 22:02:27 +00:00
Guido van Rossum
f023ab0471
Dialog.py: d.num should be numeric, not string
...
Tkinter.py: on destroy(), remove self from master's dict of children
1994-08-30 12:13:44 +00:00
Guido van Rossum
ef8f88101a
Add Widget.unbind and {Canvas,Text}.tag_unbind.
...
In Widget.__init__, call config only if cnf not empty.
1994-08-08 12:47:33 +00:00
Guido van Rossum
d7b19488d7
Use new packing and 'name' in cnf dict
1994-08-03 08:08:26 +00:00
Guido van Rossum
27b77a4367
read various startup files in Tcl and Python based upon className and
...
baseName.
1994-07-12 15:52:32 +00:00
Guido van Rossum
5e0c25bbf1
Fix bug in At() (Steen)
1994-07-12 09:04:41 +00:00
Guido van Rossum
69170c5d79
Make Pack.newinfo() return a dict
1994-07-11 15:21:31 +00:00
Guido van Rossum
97aeca1527
Added _exit and register as Tcl command exit. Micro lay-out fix.
1994-07-07 13:12:12 +00:00
Guido van Rossum
460b6bb192
Totally changed, now it is actually derived from Text
...
(This breaks something in MimeViewer.py, don't know what yet)
1994-07-06 21:54:39 +00:00
Guido van Rossum
5113569151
tag_remove: add tagName to tk call
1994-07-06 21:16:58 +00:00
Guido van Rossum
5179236a41
Added bind and tag_config methods; minor lay-out change
1994-07-06 21:15:27 +00:00
Guido van Rossum
2a39031006
Remove garbage '+ ' and reformat tag_delete function budy
1994-07-06 10:20:11 +00:00
Guido van Rossum
a3cd357771
* ScrolledText.py: added some more methods of Text (This should
...
really be done differently, e.g. by deriving from the Text class.)
1994-07-06 09:28:21 +00:00
Guido van Rossum
2dcf529b55
Tue Jul 5 13:22:45 1994 (lumholt@login.dkuug.dk)
...
* Setup.in: moreButtons Tk extension support (again).
* mklibapp: $1 is now the path to the Tk extension source
directory. The default is /usr/local/src/tcl.
* kill.py: Don't use the exec Tcl command.
* Tkinter.py
(Misc.bind_all): Bug fix; extra graves.
(Misc.tk_strictMotif): Return the value.
(mainloop, getint, getdouble, getboolean): New functions.
(_cnfmerge): Flatten cnfs.
Wed Jun 29 22:01:17 1994 Steen Lumholt (lumholt@login.dkuug.dk )
* Tkinter.py:
(Tk.destroy): master is always None; so don't del. Found by
Tommy Burnette, solution from Guido van Rossum.
(Misc.selection_get): Missing return. Found by Richard Neitzel.
(Misc._options, Widget.config, Canvas._create): If cnf is a tuple
or list then merge the contents. Suggested by Matthew Conway.
1994-07-06 09:23:20 +00:00
Guido van Rossum
bd84b04f64
Mon Jul 4 12:42:04 1994 Guido van Rossum (guido@voorn.cwi.nl)
...
* Tkinter.py (Misc.bind_all): fix typo (name shouldn't be quoted).
Wed Jun 29 10:02:21 1994 Guido van Rossum (guido@voorn.cwi.nl )
* Tkinter.py (Misc.selection_get): add 'return'
(Tk.destroy): self.master is always None
1994-07-04 10:48:25 +00:00
Guido van Rossum
0b0804be77
Lots of new stuff
1994-06-28 13:48:26 +00:00
Guido van Rossum
9beb9327df
wait_{variable,window,visibility}
...
register = _register
1994-06-27 23:15:31 +00:00
Guido van Rossum
f713247ed7
Initial revision
1994-06-27 08:00:16 +00:00
Guido van Rossum
535cf0cbe2
Redo these changes:
...
(Menu.index): return int or None, not string
(Widget.__getitem__): use splitlist, not split
1994-06-27 07:55:59 +00:00
Guido van Rossum
aec5dc9f67
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.
1994-06-27 07:55:12 +00:00
Guido van Rossum
c2fb7e65de
(Menu.index): return int or None, not string
...
(Widget.__getitem__): use splitlist, not split
1994-06-27 07:48:37 +00:00
Guido van Rossum
9b68fd961c
* Tkinter.py
...
(Widget): generalized config(); added keys().
(Canvas): added addtag_xxx and find_xxx functions; generalized
itemconfig().
1994-06-23 07:40:14 +00:00
Guido van Rossum
08a403821d
* 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.
* Tkinter.py (Canvas._create): call _flatten earlier.
1994-06-21 11:44:21 +00:00
Guido van Rossum
fea128ecf3
Reformatted using 8-space wide tabs
1994-06-20 13:42:28 +00:00
Guido van Rossum
67ef5f3fb6
* 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.
1994-06-20 13:39:14 +00:00
Guido van Rossum
45853db868
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.
1994-06-20 12:19:19 +00:00
Guido van Rossum
1e9e400ba7
Added getdouble, getboolean.
...
Removed redundant global statements
getboolean returns None if argument is empty
AtInsert() concatenates optional arguments after 'insert'
1994-06-20 09:09:51 +00:00
Guido van Rossum
5e8d3724fe
Added getvar, getint, lower, tkraise==lift to Misc class
1994-06-20 08:12:01 +00:00
Guido van Rossum
1846882254
Initial revision
1994-06-20 07:49:28 +00:00