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
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