Guido van Rossum
f8d579c5e3
This hopefully fixes the problem of having to set PATH
...
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.
1999-01-04 18:06:45 +00:00
Guido van Rossum
dfaac4df9e
Add XXX comment about the need to add a dump() method to the Text
...
widget -- no time to do this right now.
1998-12-21 18:25:03 +00:00
Barry Warsaw
107e623ef0
grid_bbox(): support new Tk API: grid bbox ?column row? ?column2 row2?
1998-12-15 00:44:15 +00:00
Guido van Rossum
b241b67b89
Turtle graphics
1998-12-04 16:42:46 +00:00
Guido van Rossum
9f1292d840
Perhaps a controversial change: when reporting a callback exception,
...
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.)
1998-10-13 20:02:39 +00:00
Barry Warsaw
4eaadf002e
Added {xview,yview}_{moveto,scroll} to the Canvas class.
1998-10-13 19:01:10 +00:00
Guido van Rossum
243ac4f497
Updated listbox methods to Tk 8.0. (Moved some around, added
...
x/yview_scroll/moveto.)
1998-10-13 13:37:30 +00:00
Guido van Rossum
3179b36014
When no master widget is specified, use options['parent'] if it exists.
1998-10-12 20:40:47 +00:00
Guido van Rossum
7f20263349
Only reference Tkinter._default_root when needed.
1998-10-12 20:40:09 +00:00
Guido van Rossum
da65450530
The message "Exception in Tkinter callback" should go to stderr.
...
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).
1998-10-06 19:06:27 +00:00
Barry Warsaw
4cbe3876ec
NSEW is also valid for -sticky
1998-10-01 15:54:48 +00:00
Barry Warsaw
9190046289
Added NS and EW constants, which are meaningful values for grid's
...
-sticky option.
1998-10-01 13:49:37 +00:00
Guido van Rossum
0c92000b7a
Ignore the TclError exception raised when deleting the registration
...
for callit, used by the after() command. This can happen when the
callback deletes the window.
1998-09-14 19:06:39 +00:00
Guido van Rossum
c86b7c63e0
Make bind variants without a sequence return a tuple of sequences
...
(formerly it returned a string, which wasn't very convenient).
Add image commands to the Text widget (these are new in Tk 8.0).
1998-08-31 16:54:33 +00:00
Guido van Rossum
3d16d3e643
Fredrik Lundh's font wrapper.
1998-08-11 19:07:58 +00:00
Guido van Rossum
b4750db3b3
Added coords() and identify() methods to Scale class.
1998-08-11 19:07:14 +00:00
Guido van Rossum
2b427c74e1
Nannified.
1998-08-10 20:13:17 +00:00
Guido van Rossum
5ff1761d3f
From: "Fredrik Lundh" <fredrik@pythonware.com>
...
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.
1998-08-07 14:55:21 +00:00
Guido van Rossum
93d1fe1c56
From: Nicolas CHAUVAT <nico@caesium.fr>
...
In the bbox method of Group (Canvas.py file), you should read
return self.canvas._getints(self._do('bbox'))
instead of
return self._getints(self._do('bbox'))
1998-07-16 13:43:05 +00:00
Fred Drake
182c590869
Tk.__init__(): In computing baseName, add ".pyo" to list of dropped
...
extensions, and include the "." in ".pyc". Still need to get
_tkinter.c:Tkapp_New() to use baseName....
1998-07-15 04:36:56 +00:00
Guido van Rossum
88b63b8d30
Allow binding a Tcl command (given as a string) as well as a Python
...
function.
1998-06-25 18:54:49 +00:00
Guido van Rossum
cef4c844df
Turns out that 'winfo id' returns the id as a hex string, with 0x prefix.
...
The int() function (aliased to getint()) doesn't handle that, so we must
use self.tk.getint() again...
1998-06-19 04:35:45 +00:00
Guido van Rossum
268824e089
Different trick to get the _test() window to pop up.
1998-06-19 04:34:19 +00:00
Guido van Rossum
fe02efdbf4
getint() now raises ValueError, not TclError, on errors.
1998-06-09 02:37:45 +00:00
Guido van Rossum
0bd5433cf8
Get rid of nearly all clals to self._do -- turns out self.tk.call can
...
be used just as well, so this saves one Python call in many cases!
1998-05-19 21:18:13 +00:00