Georg Brandl
8cdc9bc901
More yearly updates.
2010-01-01 13:07:05 +00:00
Benjamin Peterson
6e3dbbdf39
replace has_key with 'in' operator
2009-10-09 22:15:50 +00:00
Benjamin Peterson
de0559998f
replace callable()
2009-10-09 22:05:45 +00:00
R. David Murray
ddfb6cdc2b
Applying patches backported from 3.1, by Gregor Lingl.
2009-09-28 18:29:28 +00:00
Guilherme Polo
6f1fa214c5
Added missing static option for OptionMenu. Issue #5961 .
2009-08-18 16:39:36 +00:00
Guilherme Polo
7b50c4fa7c
Issue #1356969 : Add missing info methods in Tix.HList.
2009-08-18 14:46:57 +00:00
Guilherme Polo
397bd1e740
Fixes for Tix.Grid from issue #1522587 .
2009-08-18 14:34:44 +00:00
Guilherme Polo
6b3c7098f3
Issue #1522587 : New constants and methods for the Tix.Grid widget.
2009-08-18 14:23:00 +00:00
Guilherme Polo
57f9b7298a
Mark the "radio" option of Tix.CheckList as static.
2009-08-18 13:33:30 +00:00
Guilherme Polo
6c823f8720
Issue #1250469 : Fix the return value of Tix.PanedWindow.panes.
2009-08-18 13:29:20 +00:00
Guilherme Polo
d3e6e4bb8f
Issue #1119673 : Do not override Tkinter.Text methods when creating a ScrolledText.
2009-08-18 13:23:08 +00:00
Guilherme Polo
75e1f9985a
Clarifying Entry.selection_present's docstring.
2009-08-14 14:43:43 +00:00
Guilherme Polo
e45f017023
Issue #1135 : Add the XView and YView mix-ins to avoid duplicating
...
the xview* and yview* methods.
2009-08-14 14:36:45 +00:00
Benjamin Peterson
5c8da86f3a
convert usage of fail* to assert*
2009-06-30 22:57:08 +00:00
Guilherme Polo
7f146ab0ca
Issue #5450 : Moved tests involving loading tk from Lib/test/test_tcl to
...
Lib/lib-tk/test/test_tkinter/test_loadtk in order to follow the behaviour of
test_ttkguionly.
2009-06-21 17:22:50 +00:00
Guilherme Polo
1c6787f9de
Improved PanedWindow.add's docstring. 'subcomand' is a Tcl term, and the possible options and values are the same accepted by paneconfigure (not configure).
2009-05-31 21:31:21 +00:00
Walter Dörwald
2827709d6d
Fix typos.
2009-05-04 16:03:03 +00:00
Guilherme Polo
15d57653f1
Fixed issue #2638 : Show a window constructed with tkSimpleDialog.Dialog only
...
after it is has been populated and properly configured in order to prevent
window flashing.
2009-03-07 02:14:38 +00:00
Guilherme Polo
6d6c1fd04e
Fixed issue #5193 : Guarantee that Tkinter.Text.search returns a string.
2009-03-07 01:19:12 +00:00
Mark Dickinson
3e4caeb3bf
Issue #5341 : Fix a variety of spelling errors.
2009-02-21 20:27:01 +00:00
Mark Dickinson
2752e9b527
Issue #5295 : Typos in turtle.py
2009-02-20 20:42:53 +00:00
Guilherme Polo
bbb7efd72b
Some tests for Tkinter.Text.search
2009-02-09 19:21:21 +00:00
Guilherme Polo
d2ea0332ab
Fixed issue #4890 : Handle empty text search pattern in
...
Tkinter.Text.search
2009-02-09 16:41:09 +00:00
Guilherme Polo
190c35f928
Turned setup_master public
2009-02-09 16:09:17 +00:00
Guilherme Polo
8e5e438d21
Eliminated the need to use ttk.__loadtk__ and the problems related it.
2009-02-07 02:20:29 +00:00
Guilherme Polo
b98cb43e4a
Moving to importlib
2009-02-02 20:28:59 +00:00
Guilherme Polo
b64c989efc
Restore the previous geometry before leaving the test
2009-02-02 20:23:29 +00:00
Guilherme Polo
905c6b7f48
Use a single Tcl interpreter through all these tests, this may help some
...
failing buildbots.
2009-02-02 00:38:54 +00:00
Guilherme Polo
6d51f12c5e
Make sure the root windows gets destroyed
2009-01-28 20:02:01 +00:00
Guilherme Polo
6785cf0169
Added support for collecting tests only from specific packages.
2009-01-28 19:23:28 +00:00
Guilherme Polo
cda93aafde
Added the ttk module. See issue #2983 : Ttk support for Tkinter.
2009-01-28 13:09:03 +00:00
Martin v. Löwis
f081e1c9d9
Issue #3881 : Help Tcl to load even when started through the
...
unreadable local symlink to "Program Files" on Vista.
2009-01-24 15:47:27 +00:00
Martin v. Löwis
732479f50b
Issue #3767 : Convert Tk object to string in tkColorChooser.
2008-12-29 16:22:25 +00:00
Martin v. Löwis
e2eb2b4bc3
Issue #3248 : Allow placing ScrolledText in a PanedWindow.
2008-12-29 15:51:01 +00:00
Martin v. Löwis
bb9b1f1d4a
Issue #4116 : Resolve member name conflict in ScrolledCanvas.__init__
2008-11-19 09:09:41 +00:00
Hirokazu Yamamoto
b9828f67b8
Issue #3774 : Fixed an error when create a Tkinter menu item without command
...
and then remove it. Written by Guilherme Polo (gpolo).
2008-11-03 18:03:06 +00:00
Martin v. Löwis
e563aa4383
Issue #3965 : Allow repeated calls to turtle.Screen, by making it a
...
true singleton object.
Reviewed by Gregor Lingl.
2008-09-29 22:09:07 +00:00
Benjamin Peterson
52d52f185a
#3950 fix missing scale factors in turtle.py
...
reviewers: Georg, Benjamin
2008-09-24 22:11:59 +00:00
Robert Schuppenies
af1aae3aa6
Issue #1342811 : Fixed broken patch. Reviewed by benjamin.peterson.
2008-08-22 08:03:43 +00:00
Robert Schuppenies
14646337bf
Issue #1342811 : Fix leak in Tkinter.Menu.delete. Commands associated to
...
menu entries were not deleted.
2008-08-10 11:01:53 +00:00
Brett Cannon
ff6868cf10
Remove a use of callable() from Tkinter to silence warnings under -3.
2008-08-04 21:24:43 +00:00
Martin v. Löwis
aabf404ecc
Issue #799428 : Fix Tkinter.Misc._nametowidget to unwrap
...
Tcl command objects.
2008-08-02 07:20:25 +00:00
Benjamin Peterson
e70f8e1205
remove usage of MacOS from Tkinter
2008-07-31 15:15:45 +00:00
Martin v. Löwis
8718459f0f
Patch #1513695 : New turtle module, with demos.
2008-06-04 06:29:55 +00:00
Georg Brandl
4ed3ed13c5
Fix Tkinter sequence passing. #2906 .
2008-06-03 10:23:15 +00:00
Georg Brandl
7943a3295d
#2906 : accept lists for options, and some cosmetic fixes in Tkinter.
2008-05-29 07:18:49 +00:00
Guilherme Polo
6acb075f03
Fixed an import that remained from the lib-tk -> tkinter -> lib-tk renaming
2008-05-24 18:24:49 +00:00
Georg Brandl
ae019e14bd
#615772 : raise a more explicit error from Tkinter.Misc.__contains__.
2008-05-20 08:48:34 +00:00
Georg Brandl
06d2a2cb0e
Remove debugging line.
2008-05-20 07:23:59 +00:00
Georg Brandl
6634bf2919
Tkinter rename reversal: remove tkinter package, adapt imports and docs.
2008-05-20 07:13:37 +00:00
Georg Brandl
33cece05b9
Tkinter renaming reversal: move modules back in their place.
2008-05-20 06:58:21 +00:00
Georg Brandl
248e3a8b7f
Tkinter renaming reversal: Delete all stubs from lib-tk.
2008-05-20 06:49:28 +00:00
Georg Brandl
8291f8efae
Tkinter: make stub modules.
2008-05-17 15:21:58 +00:00
Georg Brandl
ad9afeb8f0
Tkinter rename, step 2: fix imports and add stub modules.
2008-05-16 15:48:15 +00:00
Georg Brandl
bbc57d73a0
Step 1 of Tkinter renaming: move lib-tk modules into a new "tkinter" package.
2008-05-16 14:24:45 +00:00
Georg Brandl
275360eaa5
#2535 : remove duplicated method.
2008-05-11 21:34:10 +00:00
Brett Cannon
d5a0985265
The Canvas module has been deprecated for removal in 3.0.
2008-05-10 03:14:32 +00:00
Benjamin Peterson
5b63acd31e
#2503 make singletons compared with "is" not == or !=
...
Thanks to Wummel for the patch
2008-03-29 15:24:25 +00:00
Christian Heimes
c5f05e45cf
Patch #2167 from calvin: Remove unused imports
2008-02-23 17:40:11 +00:00
Martin v. Löwis
f5d902fc47
Always convert Text.index result to string.
...
This improves compatibility with Tcl 8.5, which would
otherwise return textindex objects.
2008-01-01 21:08:18 +00:00
Christian Heimes
bb89992211
Make it a bit easier to test Tcl/Tk and idle from a build dir.
2007-12-18 09:00:13 +00:00
Tim Peters
f733abb783
Whitespace normalization.
2007-01-30 03:03:46 +00:00
Martin v. Löwis
bba003ef24
Patch #1472877 : Fix Tix subwidget name resolution.
...
Will backport to 2.5.
2006-11-18 18:42:11 +00:00
Martin v. Löwis
ef5fd3e7c9
Patch #1594554 : Always close a tkSimpleDialog on ok(), even
...
if an exception occurs.
Will backport to 2.5.
2006-11-18 18:05:35 +00:00
Martin v. Löwis
c73a4a4f51
Patch #1538878 : Don't make tkSimpleDialog dialogs transient if
...
the parent window is withdrawn. This mirrors what dialog.tcl
does.
Will backport to 2.5.
2006-11-18 18:00:23 +00:00
Martin v. Löwis
038cad7ee4
Patch #1592250 : Add elidge argument to Tkinter.Text.search.
2006-11-09 11:27:32 +00:00
Martin v. Löwis
5361e9a54e
Patch #1351744 : Add askyesnocancel helper for tkMessageBox.
2006-11-08 07:35:55 +00:00
Brett Cannon
d80e0c8677
Fix turtle so that you can launch the demo2 function on its own instead of only
...
when the module is launched as a script.
2006-10-16 03:09:52 +00:00
Andrew M. Kuchling
e2222a083b
Fix docstring punctuation
2006-07-29 14:43:55 +00:00
Martin v. Löwis
426f4a1c65
Patch #1524429 : Use repr instead of backticks again.
2006-07-18 17:46:31 +00:00
Tim Peters
12c00f79bc
Whitespace normalization.
2006-07-11 02:17:48 +00:00
Martin v. Löwis
06c68b800c
Patch #1519566 : Remove unused _tofill member.
...
Make begin_fill idempotent.
Update demo2 to demonstrate filling of concave shapes.
2006-07-10 22:11:28 +00:00
Tim Peters
63597f129d
Whitespace normalization.
2006-07-08 19:55:05 +00:00
Martin v. Löwis
2b88f63a3c
Bug #1514693 : Update turtle's heading when switching between
...
degrees and radians.
2006-07-03 10:19:49 +00:00
Martin v. Löwis
4c4300de4e
Reimplement turtle.circle using a polyline, to allow correct
...
filling of arcs. Also fixes #1514693 .
2006-07-03 10:05:30 +00:00
Martin v. Löwis
bd39c03c9f
Only setup canvas when it is first created.
...
Fixes #1514703
2006-07-03 09:44:00 +00:00
Georg Brandl
1be63af41d
Fix end_fill().
2006-06-28 20:23:25 +00:00
Tim Peters
43bc3788c0
Whitespace normalization.
2006-06-19 07:45:16 +00:00
Neal Norwitz
210262c0ec
Fix typo in docstring
2006-06-17 22:37:45 +00:00
Martin v. Löwis
6fb20aa92c
Patch #815924 : Restore ability to pass type= and icon=
2006-06-17 19:03:26 +00:00
Martin v. Löwis
3798da0f92
Patch #812986 : Update the canvas even if not tracing.
2006-06-17 18:44:27 +00:00
Martin v. Löwis
92733be85e
Patch #1494750 : Destroy master after deleting children.
2006-06-17 09:25:15 +00:00
Martin v. Löwis
5ecad9ca13
Patch #1096231 : Add default argument to wm_iconbitmap.
2006-06-17 09:20:41 +00:00
Martin v. Löwis
337487e3b8
Patch #763580 : Add name and value arguments to
...
Tkinter variable classes.
2006-06-17 09:15:14 +00:00
Martin Blais
215f13dd11
Normalized a few cases of whitespace in function declarations.
...
Found them using::
find . -name '*.py' | while read i ; do grep 'def[^(]*( ' $i /dev/null ; done
find . -name '*.py' | while read i ; do grep ' ):' $i /dev/null ; done
(I was doing this all over my own code anyway, because I'd been using spaces in
all defs, so I thought I'd make a run on the Python code as well. If you need
to do such fixes in your own code, you can use xx-rename or parenregu.el within
emacs.)
2006-06-06 12:46:55 +00:00
Tim Peters
fd4c419332
Whitespace normalization.
2006-05-18 02:06:40 +00:00
Georg Brandl
e3a25838db
Patch #1486962 : Several bugs in the turtle Tk demo module were fixed
...
and several features added, such as speed and geometry control.
2006-05-17 14:56:04 +00:00
Tim Peters
aa220a7023
Whitespace normalization.
2006-04-16 22:22:36 +00:00
Martin v. Löwis
0db2a989f3
Patch #1063914 : Add clipboard_get.
2006-04-16 20:55:38 +00:00
Georg Brandl
314fce92dd
Patch #1468808 : don't complain if Tkinter is already deleted at the time Font.__del__ is run.
2006-04-12 15:28:49 +00:00
Tim Peters
3daf304f3b
Whitespace normalization.
2006-04-10 20:28:40 +00:00
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