[issue10768] Bug in scrolledtext

2010-12-28 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Fixed in r87527.  Terry, the reason why calling example() interactively failed 
is the strange way __doc__ is imported -- it is None in your case and that 
causes the Tkinter type error.  I fixed this as well.

--
nosy: +georg.brandl
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10768
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10768] Bug in scrolledtext

2010-12-25 Thread Pierre Quentel

Pierre Quentel pierre.quen...@gmail.com added the comment:

The function example(), line 44 of the module
- Pierre

2010/12/24 R. David Murray rep...@bugs.python.org


 R. David Murray rdmur...@bitdance.com added the comment:

 Where is this example?

 --
 assignee:  - d...@python
 components: +Documentation
 nosy: +d...@python, r.david.murray
 type: crash - behavior

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue10768
 ___


--
Added file: http://bugs.python.org/file20161/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10768
___The function example(), line 44 of the modulebr- Pierrebrbrdiv 
class=gmail_quote2010/12/24 R. David Murray span dir=ltrlt;a 
href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;/spanbrblockquote
 class=gmail_quote style=margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid 
rgb(204, 204, 204); padding-left: 1ex;
br
R. David Murray lt;a 
href=mailto:rdmur...@bitdance.com;rdmur...@bitdance.com/agt; added the 
comment:br
br
Where is this example?br
br
--br
assignee:  -gt; d...@pythonbr
components: +Documentationbr
nosy: +d...@python, r.david.murraybr
type: crash -gt; behaviorbr
divdiv/divdiv class=h5br
___br
Python tracker lt;a 
href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;br
lt;a href=http://bugs.python.org/issue10768; 
target=_blankhttp://bugs.python.org/issue10768/agt;br
___br
/div/div/blockquote/divbr
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10768] Bug in scrolledtext

2010-12-24 Thread Pierre Quentel

New submission from Pierre Quentel pierre.quen...@gmail.com:

The scrolledtext example crashes with this message :

TypeError: unsupported operand type(s) for +: 'dict_keys' and 'dict_keys'

It works if keys() are converted to lists in line 33 :

methods = list(vars(Pack).keys()) + list(vars(Grid).keys()) + 
\list(vars(Place).keys())

Configuration : Python 3.2b2 (r32b2:87398, Dec 19 2010, 22:51:00) [MSC v.1500 
32 bit (Intel)] on win32

--
components: Tkinter
messages: 124593
nosy: quentel
priority: normal
severity: normal
status: open
title: Bug in scrolledtext
type: crash
versions: Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10768
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10768] Bug in scrolledtext

2010-12-24 Thread Daniel Urban

Daniel Urban urban.dani...@gmail.com added the comment:

It probably also works if | is used instead of +, because in 3.2 
dict_proxy.keys() are a dict_keys, not a list. See issue10630 .

--
nosy: +durban

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10768
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10768] Bug in scrolledtext

2010-12-24 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Where is this example?

--
assignee:  - d...@python
components: +Documentation
nosy: +d...@python, r.david.murray
type: crash - behavior

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10768
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10768] Bug in scrolledtext

2010-12-24 Thread Daniel Urban

Daniel Urban urban.dani...@gmail.com added the comment:

I don't think, that this is in an example (but probably there is an example 
somewhere, that crashes because of this). I found the code in 
Lib/tkinter/scrolledtext.py

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10768
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10768] Bug in scrolledtext

2010-12-24 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
assignee: d...@python - 
components:  -Documentation
keywords: +easy
nosy:  -d...@python
stage:  - unit test needed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10768
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10768] Bug in scrolledtext

2010-12-24 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

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

--
nosy: +gpolo, terry.reedy
versions: +Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10768
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com