summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk/Tkinter.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix SF bug #763637, 2.3b2 unpack tuple of wrong size in after_cancelNeal Norwitz2003-07-011-2/+4
| | | | | Tk 8.4 may return different values than 8.3. This fix should handle either version.
* Patch #749191: Delete commands in after_cancel. Will backport to 2.2.Martin v. Löwis2003-06-071-0/+6
|
* Convert tcl_version to str before comparing. Fixes #729317.Martin v. Löwis2003-05-241-1/+2
|
* Remove extra space in docstringNeal Norwitz2003-04-171-1/+1
|
* Add 'get' method to Variable and switch it from internal class toGuido van Rossum2003-04-161-1/+7
| | | | | standard class (it is now useful because it doesn't constrain the type of the value).
* For StringVar results to strings. Document that boolean things are ofMartin v. Löwis2003-04-161-4/+7
| | | | type bool. Requested in #721171.
* SF patch #701494: more apply removalsRaymond Hettinger2003-04-061-275/+274
|
* Patch #707701: Expect '??' in event fields. Fixes #698517.Martin v. Löwis2003-03-291-16/+32
| | | | Will backport to 2.2.
* Convert booleans to integers in IntVar.set. Fixes #671741.Martin v. Löwis2003-01-221-0/+6
| | | | | Return booleans from _tkinter.getboolean. Convert booleans to Tcl booleans in AsObj.
* Fix SF bug # 602259, 3rd parameter for Tkinter.scan_dragtoNeal Norwitz2003-01-101-3/+3
| | | | Add the optional gain parameter and pass it to Tk.
* Rename want_objects to wantobjects throughout, for consistency.Martin v. Löwis2002-11-261-2/+2
|
* Patch #518625: Return objects in Tkinter.Martin v. Löwis2002-11-261-0/+3
|
* Patch #621205: Tkinter updates for tk8.4.Martin v. Löwis2002-10-131-26/+548
|
* Patch #612602: Streamline configure methods.Martin v. Löwis2002-10-101-79/+24
|
* SF patch #581396, Canvas "select_item" always returns NoneNeal Norwitz2002-07-231-1/+1
| | | | Return the selected item, if there is any.
* SF patch 546244 by John Williams: add Text.dump() method.Guido van Rossum2002-04-231-1/+38
|
* Ignore widgets with unknown names in winfo_children. Fixes #518283.Martin v. Löwis2002-03-271-3/+11
| | | | 2.2.2 candidate.
* Move grid_location into Misc. Fixes bug #426892.Martin v. Löwis2001-10-131-8/+8
|
* Undo last checkin, since it duplicated the code.Martin v. Löwis2001-10-011-25/+0
|
* Patch #426880: Implement Listbox itemcget and itemconfigure.Martin v. Löwis2001-10-011-0/+25
|
* class Listbox: add itemcget, to satisfy SF patch #457713.Guido van Rossum2001-09-051-1/+5
| | | | Fix up docstring for itemconfigure.
* Add Listbox.itemconfig[ure] call. (A "recent" addition to Tk -- 8.0Guido van Rossum2001-09-011-5/+26
| | | | doesn't have it.) This is from SF bug #457487 by anonymous.
* Don't make even the _slightest_ modification between test and checkin,Jack Jansen2001-08-231-1/+1
| | | | or you will break something:-)
* The MacOS module may be available on Mac OS X, but it doesn't have a ↵Jack Jansen2001-08-231-1/+1
| | | | SchedParams() method, and there's no need to call it anyway.
* Patch #403514: precompute _subst_format_str to avoid a call toMartin v. Löwis2001-08-091-2/+2
| | | | string.join() on each invocation of _bind.
* String method conversion.Eric S. Raymond2001-02-091-7/+5
|
* Update the code to better reflect recommended style:Fred Drake2000-12-121-2/+2
| | | | | Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects.
* Make reindent.py happy (convert everything to 4-space indents!).Fred Drake2000-10-231-1/+0
|
* Removed some debugging prints: When running user configuration codeFred Drake2000-09-151-4/+0
| | | | | from Tk.readprofile(), do not print anything extra to stdout, just run the code.
* Fix for bug 110629: Generate unique image names by introducing a counterMartin v. Löwis2000-09-081-1/+3
|
* Older Tk versions don't support mousewheel support. Set event.deltaFredrik Lundh2000-09-071-1/+4
| | | | to zero if that's the case (closes bug #113727)
* -- don't mess up in winfo_visualsavailable if the system onlyFredrik Lundh2000-08-091-0/+2
| | | | supports a single visual (closes bug #110603)
* -- added optional newstate argument to Wm.state. The newstate argFredrik Lundh2000-08-091-4/+4
| | | | was added in Tk 8.3 (this fixes the first part of Bug #110605)
* -- use explicit conversion instead of u-string literal in the testFredrik Lundh2000-08-091-4/+8
| | | | | code, to make the new Tkinter.py run under 1.5.2 -- changed Text.yview argument name (for consistency with xview)
* -- added xview_moveto, xview_scroll, yview_moveto, yview_scrollFredrik Lundh2000-08-091-3/+19
| | | | to the Text method (closes Bug #110605)
* -- untabification (use "diff -b" to verify)Fredrik Lundh2000-08-091-2858/+2858
|
* Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in eitherThomas Wouters2000-07-161-16/+16
| | | | | | | | | | comments, docstrings or error messages. I fixed two minor things in test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't"). There is a minor style issue involved: Guido seems to have preferred English grammar (behaviour, honour) in a couple places. This patch changes that to American, which is the more prominent style in the source. I prefer English myself, so if English is preferred, I'd be happy to supply a patch myself ;)
* Change whitespace in two places to silence tabnanny.Guido van Rossum2000-07-061-4/+4
| | | | Also fix spelling tupel -> tuple.
* Nils Fischbeck: added doc strings to everything. Martin von LoewisGuido van Rossum2000-06-291-9/+1087
| | | | has reviewed this, too.
* Patch from /F:Andrew M. Kuchling2000-06-181-0/+6
| | | | | | | | | | this patch adds a fast _flatten function to the _tkinter module, and imports it from Tkinter.py (if available). this speeds up canvas operations like create_line and create_polygon. for example, a create_line with 5000 vertices runs about 50 times faster with this patch in place.
* Show Tcl/Tk version number in _test() and show Unicode test if possible.Guido van Rossum2000-03-301-1/+4
|
* Fix a typo in Barry's checkin.Guido van Rossum2000-02-271-1/+1
| | | | Reported both by Gerrit Holl and Mark Favas.
* Changes inspired by Randall Hooper to allow callbacks when anBarry Warsaw2000-02-251-4/+15
| | | | | | | | | | | | | | | OptionMenu is modified. Somewhat rewritten and elaborated by myself. class _setit: The constructor now takes an optional argument `callback' and stashes this in a private variable. If set, the __call__() method will invoke this callback after the variable's value has changed. It will pass the callback the value, followed by any args passed to __call__(). class OptionMenu: The constructor now takes keyword arguments, the only one that's legally recognized is `command', which can be set to a callback. This callback is invoked when the OptionMenu value is set. Any other keyword argument throws a TclError.
* Fix PR#107: wm_colormapwindows() did the wrong thing when presentedGuido van Rossum1999-10-201-1/+3
| | | | more than one window argument.
* Fixed PR#106: winfo_visualsavailable() with the includeids=1 optionGuido van Rossum1999-10-181-3/+5
| | | | didn't properly handle the hex numbers returned.
* Add calls to self.protocol("WM_DELETE_WINDOW", self.destroy) to the TkGuido van Rossum1999-08-201-0/+2
| | | | | | | | and Toplevel class constructors. This means that if the window manager closes the window, the Python-side Tkinter data structures will be destroyed correctly. (Most apps do this anyway, and it's recommended practice; I see no reason why making it the default behavior could be bad.)
* Remove some redundant code from Canvas.tag_bind(), which added allGuido van Rossum1999-07-301-11/+2
| | | | | | | | | | bindings to a dictionary _tagcommands which was otherwise unused. (This was checked in accidentally with rev. 1.125 and not deleted with rev. 1.127 when the other half of this code was removed -- although even as originally checked in the _tagcommands variable was never used.) (PR#40, reported by Peter Stoehr)
* Greg McFarlane submitted two missing Text methods: mark_next() andGuido van Rossum1999-06-211-0/+4
| | | | mark_previous().
* Greg McFarlane writes: Tkinter.Text.tag_add should take multipleGuido van Rossum1999-06-011-2/+2
| | | | arguments. [Slightly changed from submitted patch.]
* Nathan Paul Simons noticed that the grid_remove() method was missing.Guido van Rossum1999-05-051-0/+2
| | | | | (The difference between grid_remove() and grid_forget() is that the former remembers the options for the slave.)