summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk
Commit message (Collapse)AuthorAgeFilesLines
* 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)
* -- added a couple of missing Tkinter constants (canvas item styles,Fredrik Lundh2000-08-091-0/+22
| | | | place bordermode, etc)
* -- 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-092-2859/+2858
|
* Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in eitherThomas Wouters2000-07-164-19/+19
| | | | | | | | | | 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.
* Work the Tcl version number in the path we search for.Guido van Rossum2000-04-041-2/+3
|
* A version of FixTk.py that works with the way the installer nowGuido van Rossum2000-03-311-64/+4
| | | | installs Tcl/Tk.
* 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.
* Moshe Zadka:Guido van Rossum2000-02-241-4/+77
| | | | Added docstrings to tkSimpleDialog.py
* 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.
* Peter Haight discovered that this code uses a mutable default for cnfGuido van Rossum1999-09-201-1/+3
| | | | | and then (under certain circumstances) can clobber the default! He also submitted this patch as PR#82.
* 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)
* Break some cycles when the widget is destroyed.Guido van Rossum1999-06-251-0/+8
|
* 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.)
* Delete an accidentally checked-in feature that actually broke moreGuido van Rossum1999-04-081-9/+0
| | | | | | | | than was worth it: when deleting a canvas item, it would try to automatically delete the bindings for that item. Since there's nothing that says you can't reuse the tag and still have the bindings, this is not correct. Also, it broke at least one demo (Demo/tkinter/matt/rubber-band-box-demo-1.py).
* lower, tkraise/lift hide Misc.lower, Misc.tkraise/lift,Guido van Rossum1999-04-071-3/+8
| | | | | | so the preferred name for them is tag_lower, tag_raise (similar to tag_bind, and similar to the Text widget); unfortunately can't delete the old ones yet (maybe in 1.6)
* Bug reported by Jim Robinson:Guido van Rossum1999-03-161-4/+22
| | | | | | | | | An attempt to execute grid_slaves with arguments (0,0) results in *all* of the slaves being returned, not just the slave associated with row 0, column 0. This is because the test for arguments in the method does not test to see if row (and column) does not equal None, but rather just whether is evaluates to non-false. A value of 0 fails this test.
* Put a try-except around the "image delete" call in Image.__del__ toGuido van Rossum1999-02-081-2/+6
| | | | avoid tracebacks when the root is destroyed before the image object.
* This hopefully fixes the problem of having to set PATHGuido van Rossum1999-01-042-1/+68
| | | | | | in autoexec.bat in order to find the Tcl DLLs -- Tkinter calls FixTk which will hunt around in a few common places and then set PATH and try again, or else issue a big clarifying error message.
* Add XXX comment about the need to add a dump() method to the TextGuido van Rossum1998-12-211-0/+1
| | | | widget -- no time to do this right now.
* grid_bbox(): support new Tk API: grid bbox ?column row? ?column2 row2?Barry Warsaw1998-12-151-4/+8
|
* Turtle graphicsGuido van Rossum1998-12-041-0/+343
|
* Perhaps a controversial change: when reporting a callback exception,Guido van Rossum1998-10-131-0/+3
| | | | | | | | assign the exception info to sys.last_{type,value,traceback}. That way, an introspective Tkinter app can inspect its own stack trace. (The controversy is that it would keep some objects alive, but that's probably no big deal.)
* Added {xview,yview}_{moveto,scroll} to the Canvas class.Barry Warsaw1998-10-131-0/+8
|
* Updated listbox methods to Tk 8.0. (Moved some around, addedGuido van Rossum1998-10-131-12/+20
| | | | x/yview_scroll/moveto.)
* When no master widget is specified, use options['parent'] if it exists.Guido van Rossum1998-10-121-0/+2
|
* Only reference Tkinter._default_root when needed.Guido van Rossum1998-10-121-3/+2
|
* The message "Exception in Tkinter callback" should go to stderr.Guido van Rossum1998-10-061-4/+4
| | | | | | | | | Fix bug in NoDefaultRoot() -- _default_root wasn't declared global; and made it reentrant. Don't set _default_root to whatever master gets passed in to BaseWidget._setup() (only set it when we need to create a new Tk() widget).
* NSEW is also valid for -stickyBarry Warsaw1998-10-011-0/+1
|
* Added NS and EW constants, which are meaningful values for grid'sBarry Warsaw1998-10-011-1/+3
| | | | -sticky option.
* Ignore the TclError exception raised when deleting the registrationGuido van Rossum1998-09-141-1/+4
| | | | | for callit, used by the after() command. This can happen when the callback deletes the window.
* Make bind variants without a sequence return a tuple of sequencesGuido van Rossum1998-08-311-1/+27
| | | | | | (formerly it returned a string, which wasn't very convenient). Add image commands to the Text widget (these are new in Tk 8.0).
* Fredrik Lundh's font wrapper.Guido van Rossum1998-08-111-0/+192
|
* Added coords() and identify() methods to Scale class.Guido van Rossum1998-08-111-0/+4
|
* Nannified.Guido van Rossum1998-08-101-3/+2
|
* From: "Fredrik Lundh" <fredrik@pythonware.com>Guido van Rossum1998-08-071-5/+7
| | | | | | | | Date: Fri, 7 Aug 1998 13:37:12 +0100 the "initialcolor" code is broken in several places in the current version of tkColorChooser. I've attached an up- dated version for 1.5.2.