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: self.button.pack() in tkinter.tex example
Type: Stage:
Components: Documentation Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: fdrake Nosy List: fdrake, ymasuda
Priority: normal Keywords: patch

Created on 2005-01-03 07:17 by ymasuda, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
tkinter.tex.patch ymasuda, 2005-01-03 07:17 tkinter.tex.patch, deletes l.624: self.button.pack()
Messages (2)
msg47461 - (view) Author: [N/A] (ymasuda) Date: 2005-01-03 07:17
In section "Coupling Widget Variables", there is a
meaningless line::

        self.entrythingy.pack()
        
        self.button.pack()                # <-- THIS ONE
        # here is the application variable
        self.contents = StringVar()


This breaks execution of the sample::

Traceback (most recent call last):
  File "<stdin>", line 29, in ?
  File "<stdin>", line 11, in __init__
AttributeError: App instance has no attribute 'button'

attached patch is for deletion of that line.

# This was originally reported by Mr. Suzumizaki, to
Python documentation translating project in Japan.

Thanks.
msg47462 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2005-01-19 03:27
Logged In: YES 
user_id=3066

Fixed in Doc/lib/tkinter.tex revisions 1.29, 1.27.2.2, 1.22.4.1.
History
Date User Action Args
2022-04-11 14:56:08adminsetgithub: 41389
2005-01-03 07:17:52ymasudacreate