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.

Author terry.reedy
Recipients daniel.urban, gpolo, quentel, r.david.murray, terry.reedy
Date 2010-12-24.22:39:25
SpamBayes Score 1.4324436e-10
Marked as misclassified No
Message-id <1293230368.7.0.818197233146.issue10768@psf.upfronthosting.co.za>
In-reply-to
Content
Since 'methods' is converted to a set in the next line, there is no need for lists. Instead, use | and delete the conversion.
  methods = vars(Pack).keys() + vars(Grid).keys() + vars(Place).keys()
  methods = set(methods).difference(text_meths)
becomes
  methods = vars(Pack).keys() | vars(Grid).keys() | vars(Place).keys()
  methods = methods.difference(text_meths)

Now I am a little puzzled why this does not fail (3.2b1, winxp):
>>> from tkinter.scrolledtext import ScrolledText
>>> s = ScrolledText()
>>> s
<tkinter.scrolledtext.ScrolledText object at 0x00F6CF70>

On the other hand, this fails elsewhere:
>>> from tkinter.scrolledtext import example
>>> example()
Traceback (most recent call last):
  File "<pyshell#34>", line 1, in <module>
    example()
  File "C:\Programs\Python32\lib\tkinter\scrolledtext.py", line 49, in example
    stext.insert(END, __main__.__doc__)
  File "C:\Programs\Python32\lib\tkinter\__init__.py", line 2970, in insert
    self.tk.call((self._w, 'insert', index, chars) + args)
_tkinter.TclError: wrong # args: should be ".16421456.16190896 insert index chars ?tagList chars tagList ...?"
History
Date User Action Args
2010-12-24 22:39:28terry.reedysetrecipients: + terry.reedy, gpolo, r.david.murray, daniel.urban, quentel
2010-12-24 22:39:28terry.reedysetmessageid: <1293230368.7.0.818197233146.issue10768@psf.upfronthosting.co.za>
2010-12-24 22:39:25terry.reedylinkissue10768 messages
2010-12-24 22:39:25terry.reedycreate