Fred Drake
526749b678
Misc.__init__(): Removed method, replaced with class attribute (which
...
was all that the method set anyway). Removed calls to the
constructor. This reduces the number of Python function calls
per widget construction by one, for every widget construction.
1997-05-03 04:16:23 +00:00
Guido van Rossum
103cc6dd11
Patch by Craig McPheeters to clean up the back-references to widgets
...
contained in commands created by those same widgets.
1997-04-14 13:30:24 +00:00
Guido van Rossum
9580609ba3
Require _tkinter -- don't attempt to import tkinter when _tkinter does
...
not exist. All 8 uses of tkinter are replaced with _tkinter. Still
create a variable tkinter though, because that is used by other
modules importing Tkinter (e.g. tkinter.createfilehandler()).
Also added a comment to the 'import _tkinter' line saying that if this
fails, Python is not configured correctly.
1997-02-15 18:33:24 +00:00
Guido van Rossum
764d6c7acd
Gave the Listbox selection methods their correct (longer) names.
...
Removed select_adjust -- Tk no longer supports this.
1997-02-14 16:21:16 +00:00
Guido van Rossum
17ca992818
Put support for a cnf dictionary back in, since it is still supported
...
by all true Tkinter widgets. (Not that I *like* this module -- it
stinks, but until I have something better, I can't nuke it.)
1997-02-12 16:49:57 +00:00
Guido van Rossum
76f587b7f8
Avoid traceback in selection_own_get() when no Tk widget owns the
...
selection; return None instead.
1997-01-21 23:22:03 +00:00
Fred Drake
41dc09d10e
(Tkinter.py): Add support for Frame(w, class_="classname") as an alternative
...
to Frame(w, cnf={"class": "classname"}). I think this is the only
widget other than Toplevel that needs to be concerned about setting
the widget's class (-class must be the first option on the Tcl
widget creation command).
1997-01-10 15:13:12 +00:00
Guido van Rossum
7fc0bf8247
Fix the following bug:
...
- When dragging the mouse in either listbox, the *first* entry
clicked on is selected rather than the last (but the last one is
highlighted).
This is done by changing the bindtags so that our binding is executed
after the default binding (which sets the 'active' index to the last
item selected), and using 'active' instead of 'anchor' as the index to
ask for.
1997-01-03 23:39:26 +00:00
Guido van Rossum
178ff353e8
Fix bogus implementation of Group.bind().
...
Added unbind() to CanvasItem and Group classes.
1996-12-27 15:40:31 +00:00
Guido van Rossum
8371013f9a
Added config(ure) method to Image class.
...
(Fred Drake)
1996-12-27 15:33:17 +00:00
Guido van Rossum
0b96b945b8
Change the default values for IntVar and DoubleVar to numbers (they
...
were strings, accidentally).
1996-12-27 15:30:20 +00:00
Guido van Rossum
c0967cd4a2
Added a bunch of new winfo options; we should now be up to date with
...
Tk 4.2. The new winfo options supported are: mananger, pointerx,
pointerxy, pointery, server, viewable, visualid, visualsavailable.
Also fixed bugs in winfo_colormapfull() and winfo_containing().
1996-12-12 16:43:05 +00:00
Guido van Rossum
40a172c779
Added ALL='all'.
1996-11-20 22:20:21 +00:00
Guido van Rossum
58103d3b11
Turn leading minus sign into underscore for image widget name -- the
...
hyphen confused Tk into thinking the name was an option.
1996-11-20 22:17:38 +00:00
Guido van Rossum
73eba25f5f
Don't require leading '-' on option name to Text.tag_cget
1996-11-11 19:10:58 +00:00
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