Martin v. Löwis
b04dee935c
Patch #1462222 : Fix Tix.Grid. Closes #1036406 .
2006-04-10 08:34:21 +00:00
Georg Brandl
4696ffbf09
Remove "disgusting hack" in favour of closure (patch #1462235 )
2006-04-02 21:09:51 +00:00
Fredrik Lundh
d489398da9
r903@spiff: Fredrik | 2005-11-12 16:28:37 +0100
...
removed outdated copyright notices (etc)
2005-11-12 15:28:52 +00:00
Walter Dörwald
966c264b02
Fix typos.
2005-11-09 17:12:43 +00:00
Guido van Rossum
49a4b68b8b
Fix a problem in Tkinter introduced by SF patch #869468 (checked in as
...
1.179): delete bogus __hasattr__ and __delattr__ methods on class Tk
that were breaking Tkdnd.
2005-07-26 23:57:46 +00:00
Martin v. Löwis
4afe154369
Patch #1121234 : Properly cleanup _exit and tkerror commands.
...
Will backport to 2.4.
2005-03-01 08:09:28 +00:00
Martin v. Löwis
b0c670ce39
Convert boolean results back to strings. Fixes #807871 .
...
Will backport to 2.3.
2004-09-18 16:01:23 +00:00
Martin v. Löwis
cd4d297a23
Remove debug print.
2004-08-20 06:19:23 +00:00
Tim Peters
a45cacfc1c
Whitespace normalization.
2004-08-20 03:47:14 +00:00
Martin v. Löwis
babc5ec630
Expand tabs.
2004-08-18 17:47:40 +00:00
Martin v. Löwis
fe84d17a6a
Patch #764217 : Add nametofont function, exists parameter.
2004-08-18 11:06:45 +00:00
Martin v. Löwis
9441c078cf
Patch #986929 : Add support for wish -sync and -use options.
2004-08-03 18:36:25 +00:00
Martin v. Löwis
b217cd802e
Wait for visibility before setting a grab. Fixes #946153 .
2004-08-03 18:36:25 +00:00
Tim Peters
182b5aca27
Whitespace normalization, via reindent.py.
2004-07-18 06:16:08 +00:00
Martin v. Löwis
a3837a0d63
Patch #911176 : Move test function into __main__
2004-03-22 21:49:47 +00:00
Martin v. Löwis
433fa69c40
Patch #853488 : Add hlist entry_configure and entry_cget methods.
2004-03-21 15:26:44 +00:00
David Ascher
e2b4b32025
Implementation of patch 869468
...
Allow the user to create Tkinter.Tcl objects which are
just like Tkinter.Tk objects except that they do not
initialize Tk. This is useful in circumstances where the
script is being run on machines that do not have an X
server running -- in those cases, Tk initialization fails,
even if no window is ever created.
Includes documentation change and tests.
Tested on Linux, Solaris and Windows.
Reviewed by Martin von Loewis.
2004-02-18 05:59:53 +00:00
Walter Dörwald
70a6b49821
Replace backticks with repr() or "%r"
...
From SF patch #852334 .
2004-02-12 17:35:32 +00:00
Martin v. Löwis
85f48e3b9b
Convert path objects to strings in askdirectory. Fixes #852314 .
...
Backported to 2.3.
2003-12-01 21:04:22 +00:00
Martin v. Löwis
cb3062e3c0
Patch #805976 : Add DOTBOX and UNDERLINE.
2003-09-20 10:52:56 +00:00
Martin v. Löwis
39a682f5f2
Add HIDDEN. Fixes #777664 .
2003-08-09 09:53:51 +00:00
Neal Norwitz
3c0f2c91ad
Fix SF bug #763637 , 2.3b2 unpack tuple of wrong size in after_cancel
...
Tk 8.4 may return different values than 8.3. This fix should handle
either version.
2003-07-01 21:12:47 +00:00
Guido van Rossum
8b76351934
Add a missing 'self,' to a super call in recently checked-in code.
...
This was reported in the IDLEFORK bug tracker as #754971 .
2003-06-15 19:08:57 +00:00
Martin v. Löwis
1ef23657c4
Patch #751107 : Slant must be 'roman', not 'normal'.
2003-06-14 21:40:04 +00:00
Martin v. Löwis
d6efae500c
Properly deal with tuples in Open._fixresult. Fixes bug reported in
...
follow-up to #621891 .
2003-06-14 21:34:32 +00:00
Raymond Hettinger
af81c2e887
SF bug #685773 : 2 (more) bugs in turtle
...
The docs recommend filling by fill(1), drawing commands, fill(0).
However, the filling did not actually take place until the next
draw command. Fixed by issuing a null draw command at the end
of the fill method.
2003-06-09 08:50:57 +00:00
Martin v. Löwis
0f9e525bdf
Patch #749191 : Delete commands in after_cancel. Will backport to 2.2.
2003-06-07 19:52:38 +00:00
Martin v. Löwis
5489597f56
Convert tcl_version to str before comparing. Fixes #729317 .
2003-05-24 11:37:15 +00:00
Neal Norwitz
6e5be22d97
Remove extra space in docstring
2003-04-17 13:13:55 +00:00
Guido van Rossum
2cd0a65c70
Add 'get' method to Variable and switch it from internal class to
...
standard class (it is now useful because it doesn't constrain the type
of the value).
2003-04-16 20:10:03 +00:00
Martin v. Löwis
bfe175c190
For StringVar results to strings. Document that boolean things are of
...
type bool. Requested in #721171 .
2003-04-16 19:42:51 +00:00
Raymond Hettinger
ff41c48a77
SF patch #701494 : more apply removals
2003-04-06 09:01:11 +00:00
Martin v. Löwis
043bbc7da3
Patch #707701 : Expect '??' in event fields. Fixes #698517 .
...
Will backport to 2.2.
2003-03-29 09:47:21 +00:00
Raymond Hettinger
0e449234bf
SF patch 672098: Three __contains__ implementations
...
Contributed by Jp Calderone.
2003-01-30 00:56:33 +00:00
Martin v. Löwis
70c3dda2fb
Convert booleans to integers in IntVar.set. Fixes #671741 .
...
Return booleans from _tkinter.getboolean.
Convert booleans to Tcl booleans in AsObj.
2003-01-22 09:17:38 +00:00
Andrew M. Kuchling
3875281980
Fix example in a docstring to not use 'file' as a variable name
2003-01-21 14:19:21 +00:00
Neal Norwitz
e931ed59d3
Fix SF bug # 602259, 3rd parameter for Tkinter.scan_dragto
...
Add the optional gain parameter and pass it to Tk.
2003-01-10 23:24:32 +00:00
Martin v. Löwis
25c7b50e8f
Convert Tcl path objects to strings. Fixes #661357 .
...
Provide .string attribute and __unicode for Tcl_Objs.
2003-01-04 00:08:09 +00:00
Neal Norwitz
d8b5e3fda1
Tix update from Mike Clarkson (maintainer)
2002-12-30 23:52:01 +00:00
Neal Norwitz
731a986dfa
Upgrade to Tix-8.1.4 from Mike Clarkson (the maintainer)
2002-12-10 02:18:49 +00:00
Martin v. Löwis
468742878f
Patch #649184 : Update to tix-8.1.4 RC3.
2002-12-06 10:33:45 +00:00
Martin v. Löwis
8c8aa5d666
Rename want_objects to wantobjects throughout, for consistency.
2002-11-26 21:39:48 +00:00
Martin v. Löwis
ffad633af9
Patch #518625 : Return objects in Tkinter.
2002-11-26 09:28:05 +00:00
Neal Norwitz
f539bdeb9c
Sync Tix from Mike Clarkson, a maintainer
2002-11-14 02:43:40 +00:00
Martin v. Löwis
838a359b95
Search for tix subdirectories. Fixes #564729 . Will backport to 2.2.
2002-11-09 19:01:44 +00:00
Martin v. Löwis
b24e3477dc
Patch #621891 : Add askopenfile{name}s.
2002-10-13 10:28:04 +00:00
Martin v. Löwis
2ec362717b
Patch #621205 : Tkinter updates for tk8.4.
2002-10-13 10:22:08 +00:00
Martin v. Löwis
6ce1315bd3
Patch #612602 : Streamline configure methods.
2002-10-10 14:36:13 +00:00
Guido van Rossum
bffa52f07f
Whitespace normalization (get rid of tabs).
2002-09-29 00:25:51 +00:00
Guido van Rossum
fd2ede2aa8
Add the bulk of SF patch 595111 by Attila Babo.
...
This adds new methods heading(), setheading(), position(),
window_width(), window_height(), setx(), and sety(), to make this more
functionality-compatible with Logo turtle graphics (Attila's last
words, not mine :-). I had to fix the sety() code which was broken in
Attila's patch.
I'm not adopting the functionality change that Attila claimed was a
bugfix (no output without tracing), because I disagree that it's a
bug.
2002-09-23 16:55:05 +00:00
Martin v. Löwis
73b9b6679e
Update Canvas before computing width. Draw turtle at end of drawing circle.
...
Fixes #612595 . Will backport to 2.2.
2002-09-22 13:00:26 +00:00
Martin v. Löwis
01824bf50c
Patch #484994 : Improve PanedWindow.
2002-09-19 08:12:55 +00:00
Neal Norwitz
58b63bf4e3
SF patch #581396 , Canvas "select_item" always returns None
...
Return the selected item, if there is any.
2002-07-23 02:52:58 +00:00
Neal Norwitz
ebb4190709
Use string methods, remove import string
2002-05-31 20:51:31 +00:00
Guido van Rossum
256705bca7
SF patch 546244 by John Williams: add Text.dump() method.
2002-04-23 13:29:43 +00:00
Martin v. Löwis
8509ebc8f7
Patch #539392 : Invoke setlocale, try opening the file in demo mode.
2002-04-08 14:51:31 +00:00
Martin v. Löwis
0c0d56a22f
Reindent.
2002-03-28 16:26:40 +00:00
Martin v. Löwis
4157ffbb96
Patch #536117 : Typo in turtle.py.
...
2.2.2 candidate.
2002-03-28 15:45:57 +00:00
Martin v. Löwis
4208d4f757
Destroy and unlink deleted NoteBook panes. Fixes #516703 .
...
2.2.2 candidate.
2002-03-27 17:59:17 +00:00
Martin v. Löwis
f2041b8aa6
Ignore widgets with unknown names in winfo_children. Fixes #518283 .
...
2.2.2 candidate.
2002-03-27 17:15:57 +00:00
Martin v. Löwis
4ca196dd8d
Set TCL_LIBRARY before import _tkinter. Suggested by Kirill Simonov.
...
Fixes #418173 and #219960 . 2.2.1 candidate.
2002-02-24 16:51:45 +00:00
Martin v. Löwis
b4779c3496
Patch #515598 : removed unused import of os.
2002-02-16 23:16:53 +00:00
Andrew M. Kuchling
1142d595ee
Fix typo in label
2002-01-02 16:38:19 +00:00
Martin v. Löwis
85f98143b7
Print encoded versions of the file names in test application. Fixes #496084
2001-12-30 14:43:56 +00:00
Fred Drake
723293cb49
Make tix_configure() work the same way configure() works for the basic
...
Tkinter classes.
Adjust a lot of docstrings.
Convert a few type checks to use isinstance() instead of type().
This is part of SF patch #485959 .
2001-12-13 04:53:07 +00:00
Guido van Rossum
1990943095
Fix for SF #491953 (Andrew Dalke): ScrolledText.py has TabError
...
Untabified.
2001-12-12 12:47:57 +00:00
Guido van Rossum
61d3637ff8
SF patch #491183 (Jeff Epler): ScrolledText.grid() doesn't work
...
Using grid methods on ScrolledText widgets does not
work as expected. It either fails to pack a widget, or
can even cause Tk to lock up.
The problem is that the .grid method is being called on
the text widget, not the frame widget. This can lead
to the well-known lockup in Tk when a frame's children
are managed by both the pack and grid managers. Even
if it doesn't lock up, the frame is never placed within
the intended widget.
Program fragment:
>>> import ScrolledText
>>> s = ScrolledText.ScrolledText()
>>> s.grid(row=0, column=0, rowspan=2)
The following patch uses the same hack to copy the
'grid' and 'place' geometry manager methods to the
ScrolledText instance as is already used for the 'pack'
manager.
2001-12-10 16:42:43 +00:00
Fred Drake
6b04ffe9e5
Be more careful about accessing attributes of the parent: if Tk has not been
...
initialized, this will be None, but the functions will still work (there will
simply be a bogus parent on the screen). Allowing the parent to be None
is useful when testing the functions from an interactive interpreter.
Add an optional keyword paramter "show" to the _QueryString class; when given
it is used to set the -show option to the entry widget. This allows passing
show="*" or the like to askstring(), making it useful for requesting
passwords/passphrases from the user.
This closes SF bug #438517 .
Changed a docstring to be less font-lock-hostile.
2001-12-06 16:51:41 +00:00
Martin v. Löwis
652e1917c6
Properly set static options for tixBalloon and tixResizeHandle.
...
Expose Tix.ResizeHandle.{detach_widget,hide,show}.
Update Tix demos.
2001-11-25 14:50:56 +00:00
Martin v. Löwis
bc0ad2d1a4
Merge directory chooser into tkFileDialog.
2001-11-08 17:51:33 +00:00
Martin v. Löwis
25ee87cc50
Patch #478654 : Expose tk_chooseDirectory.
...
Also delegate kw arguments through ** calls.
2001-11-07 22:38:08 +00:00
Martin v. Löwis
b7b3260128
Patch #471120 : Improved doc strings and new wrappers.
2001-11-02 23:48:20 +00:00
Fredrik Lundh
4ecd71376c
directory chooser (requires a recent version of Tk)
2001-10-29 22:58:55 +00:00
Martin v. Löwis
dc57909323
Move grid_location into Misc. Fixes bug #426892 .
2001-10-13 09:33:51 +00:00
Guido van Rossum
ea32cbb24e
Suggestion from SF patch #470433 to avoid clobbering TCL_LIBRARY et
...
al. if already set. Also adds TIX_LIBRARY (just in case).
(Note that this is entirely Windows specific.)
2001-10-12 15:34:29 +00:00
Martin v. Löwis
3e048485f9
Add entry parameter to HList.item_cget. Fixes bug #466981 .
2001-10-09 11:50:55 +00:00
Martin v. Löwis
c04f7a794e
Undo last checkin, since it duplicated the code.
2001-10-01 17:02:49 +00:00
Martin v. Löwis
2fa69d7984
Patch #426880 : Implement Listbox itemcget and itemconfigure.
2001-10-01 10:09:31 +00:00
Guido van Rossum
09f1ad8542
class Listbox: add itemcget, to satisfy SF patch #457713 .
...
Fix up docstring for itemconfigure.
2001-09-05 19:29:56 +00:00
Guido van Rossum
a0adb92b23
Add Listbox.itemconfig[ure] call. (A "recent" addition to Tk -- 8.0
...
doesn't have it.) This is from SF bug #457487 by anonymous.
2001-09-01 18:29:55 +00:00
Jack Jansen
be92af0e2a
Don't make even the _slightest_ modification between test and checkin,
...
or you will break something:-)
2001-08-23 13:25:59 +00:00
Jack Jansen
0eb936b47d
The MacOS module may be available on Mac OS X, but it doesn't have a SchedParams() method, and there's no need to call it anyway.
2001-08-23 13:18:10 +00:00
Guido van Rossum
49fa2bdaa1
Fix two bugs discovered by PyChecker. (I cannot test these, but I'm
...
confident that the old code was utterly broken -- the worse that can
happen is that the new code is still broken.)
2001-08-13 14:12:35 +00:00
Martin v. Löwis
c8718c13e8
Patch #403514 : precompute _subst_format_str to avoid a call to
...
string.join() on each invocation of _bind.
2001-08-09 16:57:33 +00:00
Guido van Rossum
3c7a25a4d9
Applied SF patch #438424 by Josh Cogliati:
...
Python's logolike module turtle.py did not display
the turtle except when actually drawing lines.
This patch changes the turtle.py module so that
it displays the turtle at all times when tracing is
on. This is similar to the the way that logo works.
When tracing is off the turtle will not be displayed.
2001-08-09 16:42:07 +00:00
Guido van Rossum
40f3c7fdf0
The lower() and tkraise() methods were calling the Canvas widget
...
wrongly. Fixed this.
This closes SF bug #412682 .
2001-04-10 21:13:06 +00:00
Moshe Zadka
22710823fb
Fixed a bunch of Tabnanny errors
2001-03-21 17:24:49 +00:00
Martin v. Löwis
b21cb5fa7d
Patch #410231 : Add the Python Tix library.
2001-03-21 07:42:07 +00:00
Eric S. Raymond
fc170b1fd5
String method conversion.
2001-02-09 11:51:27 +00:00
Guido van Rossum
a659efe5c7
Patch by kragen@pobox.com: When tracing is turned on, lines shorter
...
than a pixel don't get drawn at all. If you're building long curves
made of such lines, this is a bad thing.
2001-01-01 19:11:07 +00:00
Fred Drake
132dce2246
Update the code to better reflect recommended style:
...
Use != instead of <> since <> is documented as "obsolescent".
Use "is" and "is not" when comparing with None or type objects.
2000-12-12 23:11:42 +00:00
Guido van Rossum
1378bd5b0b
Also point TK_LIBRARY to the appropriate directory.
...
Changed the landmark to tclIndex, which should occur in both.
2000-10-25 17:42:13 +00:00
Fred Drake
d038ca830f
Make reindent.py happy (convert everything to 4-space indents!).
2000-10-23 18:31:14 +00:00
Guido van Rossum
00236f38da
[ Bug #110677 ] PRIVATE: various minor Tkinter things (PR#388)
...
http://sourceforge.net/bugs/?func=detailbug&group_id=5470&bug_id=110677
Canvas.CanvasItem & Canvas.Group:
- bind lacks an optional "add" param
- unbind lacks an optional "funcid" param
- tkraise/lower should call self.canvas.tag_XXXX
(markus.oberhumer@jk.uni-linz.ac.at )
Note: I'm *not* fixing "bbox() return value is inconsistent with
Canvas.bbox()" -- it might break existing code.
2000-10-06 00:38:51 +00:00
Martin v. Löwis
4b6ea798cb
Don't rename Tkinter to Tk; closes bug 115714
...
Subclass Error from Exception.
2000-10-01 17:52:01 +00:00
Fred Drake
d2a5ad25d5
Removed some debugging prints: When running user configuration code
...
from Tk.readprofile(), do not print anything extra to stdout, just run
the code.
2000-09-15 04:41:22 +00:00
Martin v. Löwis
0d8ce6111c
Fix for bug 110629: Generate unique image names by introducing a counter
2000-09-08 16:28:30 +00:00
Fredrik Lundh
a249f16af0
Older Tk versions don't support mousewheel support. Set event.delta
...
to zero if that's the case (closes bug #113727 )
2000-09-07 15:05:09 +00:00
Fredrik Lundh
46a4151674
-- added a couple of missing Tkinter constants (canvas item styles,
...
place bordermode, etc)
2000-08-09 19:37:16 +00:00
Fredrik Lundh
24037f735f
-- don't mess up in winfo_visualsavailable if the system only
...
supports a single visual (closes bug #110603 )
2000-08-09 19:26:47 +00:00
Fredrik Lundh
289ad8f063
-- added optional newstate argument to Wm.state. The newstate arg
...
was added in Tk 8.3 (this fixes the first part of Bug #110605 )
2000-08-09 19:11:59 +00:00
Fredrik Lundh
8fffa208e0
-- use explicit conversion instead of u-string literal in the test
...
code, to make the new Tkinter.py run under 1.5.2
-- changed Text.yview argument name (for consistency with xview)
2000-08-09 18:51:01 +00:00
Fredrik Lundh
5bd2cd663d
-- added xview_moveto, xview_scroll, yview_moveto, yview_scroll
...
to the Text method (closes Bug #110605 )
2000-08-09 18:29:51 +00:00
Fredrik Lundh
06d2815350
-- untabification (use "diff -b" to verify)
2000-08-09 18:03:12 +00:00
Thomas Wouters
7e47402264
Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in either
...
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 ;)
2000-07-16 12:04:32 +00:00
Guido van Rossum
0a3f7978c4
Change whitespace in two places to silence tabnanny.
...
Also fix spelling tupel -> tuple.
2000-07-06 05:34:14 +00:00
Guido van Rossum
5917ecb0a4
Nils Fischbeck: added doc strings to everything. Martin von Loewis
...
has reviewed this, too.
2000-06-29 16:30:50 +00:00
Andrew M. Kuchling
e475e70128
Patch from /F:
...
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.
2000-06-18 18:45:50 +00:00
Guido van Rossum
aaa8bb4211
Work the Tcl version number in the path we search for.
2000-04-04 23:32:21 +00:00
Guido van Rossum
42405a5d7d
A version of FixTk.py that works with the way the installer now
...
installs Tcl/Tk.
2000-03-31 03:11:40 +00:00
Guido van Rossum
2ab9082a07
Show Tcl/Tk version number in _test() and show Unicode test if possible.
2000-03-30 23:19:44 +00:00
Guido van Rossum
0ba33002e1
Fix a typo in Barry's checkin.
...
Reported both by Gerrit Holl and Mark Favas.
2000-02-27 15:35:47 +00:00
Barry Warsaw
7d3f27c090
Changes inspired by Randall Hooper to allow callbacks when an
...
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.
2000-02-25 21:54:19 +00:00
Guido van Rossum
d5062babed
Moshe Zadka:
...
Added docstrings to tkSimpleDialog.py
2000-02-24 15:01:43 +00:00
Guido van Rossum
8fa42af978
Fix PR#107: wm_colormapwindows() did the wrong thing when presented
...
more than one window argument.
1999-10-20 12:29:56 +00:00
Guido van Rossum
f8d8e07601
Fixed PR#106: winfo_visualsavailable() with the includeids=1 option
...
didn't properly handle the hex numbers returned.
1999-10-18 22:06:38 +00:00
Guido van Rossum
ea7364c7cd
Peter Haight discovered that this code uses a mutable default for cnf
...
and then (under certain circumstances) can clobber the default!
He also submitted this patch as PR#82.
1999-09-20 00:39:47 +00:00
Guido van Rossum
e61e98d2ae
Add calls to self.protocol("WM_DELETE_WINDOW", self.destroy) to the Tk
...
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.)
1999-08-20 18:26:06 +00:00
Guido van Rossum
42b334d93d
Remove some redundant code from Canvas.tag_bind(), which added all
...
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)
1999-07-30 12:22:12 +00:00
Guido van Rossum
7ea8f8404c
Break some cycles when the widget is destroyed.
1999-06-25 15:53:54 +00:00
Guido van Rossum
1a03cf56e0
Greg McFarlane submitted two missing Text methods: mark_next() and
...
mark_previous().
1999-06-21 14:13:30 +00:00
Guido van Rossum
fa8c3eab79
Greg McFarlane writes: Tkinter.Text.tag_add should take multiple
...
arguments. [Slightly changed from submitted patch.]
1999-06-01 13:57:15 +00:00
Guido van Rossum
8e40759d5a
Nathan Paul Simons noticed that the grid_remove() method was missing.
...
(The difference between grid_remove() and grid_forget() is that the
former remembers the options for the slave.)
1999-05-05 23:03:48 +00:00
Guido van Rossum
6e9dadc1da
Delete an accidentally checked-in feature that actually broke more
...
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).
1999-04-08 14:46:06 +00:00
Guido van Rossum
0d8d3dd5b0
lower, tkraise/lift hide Misc.lower, Misc.tkraise/lift,
...
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)
1999-04-07 16:25:54 +00:00
Guido van Rossum
eb354b31e5
Bug reported by Jim Robinson:
...
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.
1999-03-16 21:54:50 +00:00
Guido van Rossum
c55b0ca601
Put a try-except around the "image delete" call in Image.__del__ to
...
avoid tracebacks when the root is destroyed before the image object.
1999-02-08 15:26:49 +00:00
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