This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: ScrolledText can't be placed in a PanedWindow
Type: Stage:
Components: Tkinter Versions: Python 3.0, Python 2.7, Python 2.6
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: barry, benjamin.peterson, gpolo, loewis
Priority: release blocker Keywords: patch

Created on 2008-07-01 00:46 by gpolo, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
scrolledtext_masterstr.diff gpolo, 2008-07-01 00:46
ScrolledText.diff gpolo, 2008-11-18 04:16
Messages (9)
msg69037 - (view) Author: Guilherme Polo (gpolo) * (Python committer) Date: 2008-07-01 00:46
Right now ScrolledText can't be added to a Tkinter.PanedWindow, also
can't be added to a ttk.Notebook (which is not part of the stdlib),
because it is a lacking a proper __str__ method.

Run the following sample code to check how it fails:
import Tkinter
import ScrolledText

paned = Tkinter.PanedWindow()
stext = ScrolledText.ScrolledText(paned)
paned.add(stext)
msg75996 - (view) Author: Guilherme Polo (gpolo) * (Python committer) Date: 2008-11-18 03:34
anyone ?
msg75997 - (view) Author: Guilherme Polo (gpolo) * (Python committer) Date: 2008-11-18 04:16
I've changed it a bit more now, this includes dropping support for cnf.
My wish is to actually remove the cnf usage all over Tkinter :)
msg77505 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2008-12-10 08:44
What problem is solved by ScrolledText.diff that isn't already solved by
scrolledtext_masterstr.diff?
msg77664 - (view) Author: Guilherme Polo (gpolo) * (Python committer) Date: 2008-12-12 11:44
On Wed, Dec 10, 2008 at 6:44 AM, Martin v. Löwis <report@bugs.python.org> wrote:
>
> Martin v. Löwis <martin@v.loewis.de> added the comment:
>
> What problem is solved by ScrolledText.diff that isn't already solved by
> scrolledtext_masterstr.diff?

None. The later is a cleanup of ScrolledText.py.
msg77736 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2008-12-13 14:48
Committed for 2.5 as r67735. It still needs to be applied to the other
branches.
msg78459 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2008-12-29 16:02
Notice that the example function doesn't actually work; it gives

_tkinter.TclError: wrong # args: should be ".148002724.148002500 insert
index chars ?tagList chars tagList ...?"
msg78460 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2008-12-29 16:09
Thanks again for the patch. Merged into recent branches as r68006,
r68007, r68008, and r68009
msg78461 - (view) Author: Guilherme Polo (gpolo) * (Python committer) Date: 2008-12-29 16:15
On Mon, Dec 29, 2008 at 2:02 PM, Martin v. Löwis <report@bugs.python.org> wrote:
>
> Martin v. Löwis <martin@v.loewis.de> added the comment:
>
> Notice that the example function doesn't actually work; it gives
>
> _tkinter.TclError: wrong # args: should be ".148002724.148002500 insert
> index chars ?tagList chars tagList ...?"

The example function included didn't work for you ? I guess I
misunderstood your message otherwise you wouldn't have commited it.
History
Date User Action Args
2022-04-11 14:56:36adminsetnosy: + barry, benjamin.peterson
github: 47498
2008-12-29 16:15:03gpolosetmessages: + msg78461
2008-12-29 16:13:01loewissetstatus: open -> closed
resolution: accepted
2008-12-29 16:09:44loewissetmessages: + msg78460
2008-12-29 16:02:34loewissetmessages: + msg78459
2008-12-20 14:36:45loewissetversions: - Python 2.5.3
2008-12-20 02:41:31loewissetpriority: deferred blocker -> release blocker
2008-12-13 14:48:44loewissetpriority: release blocker -> deferred blocker
messages: + msg77736
2008-12-12 11:44:55gpolosetmessages: + msg77664
2008-12-10 08:44:59loewissetpriority: release blocker
nosy: + loewis
messages: + msg77505
2008-11-18 04:16:03gpolosetfiles: + ScrolledText.diff
messages: + msg75997
2008-11-18 03:34:02gpolosetmessages: + msg75996
versions: + Python 3.0, Python 2.7, Python 2.5.3
2008-07-01 00:46:13gpolocreate