Fred Drake
c8296db67d
Widget._setup(): Support name=None in a similar way to the handling of other
...
Tkinter keyword parameters.
1997-05-27 22:45:10 +00:00
Guido van Rossum
16cd332aab
Add root.tkraise() to the _test() program so the window doesn't hide
...
behind the shell window on NT.
1997-05-09 00:59:43 +00:00
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
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
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
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
Guido van Rossum
6e8ec59eb4
Implement lower by calling lower, not lift.
1996-09-11 14:25:41 +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
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
9afdabffa9
Add missing close parenthesis.
1996-07-30 20:16:21 +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
421bb0e389
fix canvas bind commands
1996-07-21 02:19:32 +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
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
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
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
bf4d8f9d87
added OptionMenu class (tk_optionMenu interface)
1995-09-01 20:35:37 +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