Commit Graph

276 Commits

Author SHA1 Message Date
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