238 Commits

Author SHA1 Message Date
Martin v. Löwis
3442211ace Patch #749191: Delete commands in after_cancel. 2003-06-07 19:53:55 +00:00
Martin v. Löwis
a43f281144 Patch #707701: Expect '??' in events. Fixes #698517. 2003-03-29 09:48:12 +00:00
Martin v. Löwis
0ba5d4b9de Search for tix subdirectories. Fixes #564729. 2002-11-09 19:02:34 +00:00
Martin v. Löwis
cda5f7bc3d Update canvas before computing width. Draw turtle when done drawing circle.
Fixes #612595.
2002-09-22 13:02:10 +00:00
Michael W. Hudson
82f3bac561 backport loewis' checkin of
revision 1.161 of Tkinter.py

Ignore widgets with unknown names in winfo_children. Fixes #518283.
2.2.2 candidate.
2002-08-23 15:27:52 +00:00
Neal Norwitz
a687414508 SF patch #581396, Canvas "select_item" always returns None
Return the selected item, if there is any.
2002-07-23 02:55:14 +00:00
Michael W. Hudson
1f402ebbe8 backport loewis' checkin of
revision 1.6 of turtle.py

Patch #536117: Typo in turtle.py.
2.2.2 candidate.
2002-04-05 15:28:31 +00:00
Michael W. Hudson
c44f7f7835 backport loewis' checkin of
revision 1.6 of FixTk.py

Set TCL_LIBRARY before import _tkinter. Suggested by Kirill Simonov.
Fixes #418173 and #219960. 2.2.1 candidate.
2002-02-25 10:56:25 +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