summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk/Tkinter.py
Commit message (Collapse)AuthorAgeFilesLines
* Typo: baseWidht -> baseWidth.Guido van Rossum1998-02-241-1/+1
|
* Fix bug in trace_vdelete(); should use master's delete command.Guido van Rossum1998-02-191-1/+2
|
* Add trace methods to class VariableGuido van Rossum1998-01-141-5/+15
|
* Two critical fixes to the changes that I made for Greg McFarlane --Guido van Rossum1997-12-301-3/+3
| | | | patches provided by Greg (am I glad I sent him my latest version!).
* Fixed several bugs reported by Greg McFarmane:Guido van Rossum1997-12-291-42/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * The invoke methods of the three Tkinter widgets Button, Checkbutton and Radiobutton should return the value returned by the callback, (like the Menu widget does): def invoke(self): return self.tk.call(self._w, 'invoke') * The select_from method of the Canvas widget should use 'from', not 'set': def select_from(self, tagOrId, index): self.tk.call(self._w, 'select', 'from', tagOrId, index) Currently, if you use select_from, you get the error message: 'TclError: bad select option "set": must be adjust, clear, from, item, or to' * The 'entrycget' and 'type' methods of the Tk menu widget are missing from Tkinter. * There is a bug in grid_columnconfigure and grid_rowconfigure. For example, this should return the current value of the 'minsize' option for column 0: f.grid_columnconfigure(0, 'minsize') Instead it returns the same as: f.grid_columnconfigure(0) I suggest that the hint given in the comment in the Tkinter.Misc.configure method should be followed - "ought to generalize this so tag_config etc. can use it". Repeating the same configure code several times in Tkinter is inviting errors. [I did not follow this advice --G] * The grid_slaves method should handle options. Currently, to pass options to the grid_slaves method, you have to do something like: grid_slaves('-row', 1)
* Typo: Widht instead of Width...Guido van Rossum1997-12-271-1/+1
|
* PhotoImage.put(): Fixed -to handling, including backward compatibility hack.Fred Drake1997-12-161-1/+3
| | | | Guido, please take a look at this.
* Added tag_prevrange analogous to rag_nextrange.Guido van Rossum1997-12-151-0/+3
|
* Change _nametowidget to nametowidget -- it is a public interface.Guido van Rossum1997-12-121-1/+2
|
* Last minute fix to Text.window_cget(), which should properly Tcl-ifyGuido van Rossum1997-12-111-0/+4
| | | | the option name (prepend '-', strip trailing '_').
* Fix problem detected by Greg McFarlane -- callbacks passed toGuido van Rossum1997-12-111-10/+16
| | | | | bind_class() and bind_all() are destroyed when the widget to which they were passed is destroyed.
* Support for the "event" command, new in Tk 4.2.Guido van Rossum1997-12-021-0/+24
| | | | By Case Roole.
* bind_class should return a valueGuido van Rossum1997-11-221-1/+1
|
* Some restructuring.Guido van Rossum1997-11-071-111/+166
| | | | | | | | | | | | | | | | | | | | | | | | | | | All geometry manager methods that apply to a master widget instead of to a slave widget have been moved to the Misc class, which is inherited by all of Tk(), Toplevel() and Widget(). They have been renamed to have their geometry manager name as a prefix, e.g. pack_propagate(); the short names can still be used where ambiguities are resolved so that pack has priority over place has priority over grid (since this was the old rule). Also, the method definitions in the Pack, Place and Grid classes now all have their respective geometry manager name as a prefix (e.g. pack_configure); the shorter names are aliases defined through assignment. A similar renaming has been done for all config() methods found elsewhere; these have been renamed to configure() with config being the alias (instead of the other way around). (This may not make much of a difference but the official Tk command name is now 'configure' and it may help in debugging tracebacks.) Finally, a new base class BaseWidget has been introduced, which implements the methods common between Widget and Toplevel (the difference between those two classes is that Toplevel has a different __init__() but also that Toplevel doesn't inherit from Pack, Place or Grid.
* Move Widget.config() c.s. to Misc class, so the Tk class also inherits them.Guido van Rossum1997-09-291-31/+30
|
* Add missing comma to make a tuple of (tagOrId).Guido van Rossum1997-08-181-1/+1
|
* Add dummies for create/delete filehandles, just so that vanilla GrailGuido van Rossum1997-08-141-0/+6
| | | | 0.3 won't break on Windows.
* Fixes for the Mac. (Jack)Guido van Rossum1997-08-121-1/+5
|
* Get READABLE c.s. from _tkinter instead of conditional definition.Guido van Rossum1997-08-051-12/+6
| | | | in Tk.destroy(), reset _default_root to None when it is us.
* Use dictionary's update() method in _cnfmerge().Guido van Rossum1997-07-191-2/+6
|
* Widget._setup(): Support name=None in a similar way to the handling of otherFred Drake1997-05-271-1/+2
| | | | Tkinter keyword parameters.
* Add root.tkraise() to the _test() program so the window doesn't hideGuido van Rossum1997-05-091-0/+1
| | | | behind the shell window on NT.
* Misc.__init__(): Removed method, replaced with class attribute (whichFred Drake1997-05-031-4/+1
| | | | | | 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.
* Patch by Craig McPheeters to clean up the back-references to widgetsGuido van Rossum1997-04-141-2/+23
| | | | contained in commands created by those same widgets.
* Require _tkinter -- don't attempt to import tkinter when _tkinter doesGuido van Rossum1997-02-151-25/+10
| | | | | | | | | 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.
* Gave the Listbox selection methods their correct (longer) names.Guido van Rossum1997-02-141-2/+4
| | | | Removed select_adjust -- Tk no longer supports this.
* Avoid traceback in selection_own_get() when no Tk widget owns theGuido van Rossum1997-01-211-3/+4
| | | | selection; return None instead.
* (Tkinter.py): Add support for Frame(w, class_="classname") as an alternativeFred Drake1997-01-101-1/+4
| | | | | | | 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).
* Added config(ure) method to Image class.Guido van Rossum1996-12-271-0/+10
| | | | (Fred Drake)
* Change the default values for IntVar and DoubleVar to numbers (theyGuido van Rossum1996-12-271-2/+2
| | | | were strings, accidentally).
* Added a bunch of new winfo options; we should now be up to date withGuido van Rossum1996-12-121-2/+29
| | | | | | | 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().
* Turn leading minus sign into underscore for image widget name -- theGuido van Rossum1996-11-201-3/+5
| | | | hyphen confused Tk into thinking the name was an option.
* Don't require leading '-' on option name to Text.tag_cgetGuido van Rossum1996-11-111-0/+4
|
* Get rid of bogus binding of <Delete> to a function that deletes the nextGuido van Rossum1996-10-241-3/+0
| | | | character (this is already a built-in binding now).
* Added support for floating point resolution to Scale.get().Guido van Rossum1996-10-231-1/+5
|
* (Tkinter.py): Fixed bug in re-implementation of OptionMenu.Fred Drake1996-10-211-1/+1
|
* (Fred Drake:) Re-wrote the OptionMenu class to allow access to a realGuido van Rossum1996-10-211-5/+28
| | | | | Menu object via om['menu'] -- this is necessary to use a post-command with an OptionMenu. The API has not changed.
* (Tkinter.py): Improve application basename determination to make .py andFred Drake1996-10-061-1/+2
| | | | | .pyc extensions completely equivelent when locating the "profile" which should be read on startup.
* (Tkinter.py): Fixed dumb typo in Misc.tk_setPalette().Fred Drake1996-10-041-2/+2
|
* (Tkinter.py): Many revisions for Tk 4.X: Added clipboard support, updatedFred Drake1996-09-271-40/+86
| | | | | | | 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.
* Implement lower by calling lower, not lift.Guido van Rossum1996-09-111-1/+1
|
* simpler version of the previous fixGuido van Rossum1996-09-101-4/+2
|
* compatibility changes suggested by Jack,Guido van Rossum1996-09-101-2/+4
| | | | | for tk_menuBar and tk_bindForTraversal (i.e. don't call these for Tk >= 4.1)
* Fixed Entry.select_from() to acually call the "select from" widgetGuido van Rossum1996-09-061-1/+1
| | | | command instead of the non-existant "select set". (Fred)
* Added Menu.insert*() methods [Fred]Guido van Rossum1996-09-051-0/+13
|
* Add initial values to variables to avoid crash in __del__Guido van Rossum1996-09-051-0/+6
|
* Changes for Canvas by FredGuido van Rossum1996-08-221-14/+14
|
* Added a small test program.Guido van Rossum1996-08-211-0/+19
|
* stupid typo in latest fix ('Name' should be 'name')Guido van Rossum1996-08-081-1/+1
|
* Add missing close parenthesis.Guido van Rossum1996-07-301-1/+1
|