[Patches] [ python-Patches-1094815 ] self.button.pack() in tkinter.tex example

SourceForge.net noreply at sourceforge.net
Mon Jan 3 08:17:53 CET 2005


Patches item #1094815, was opened at 2005-01-03 16:17
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1094815&group_id=5470

Category: Documentation
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: [N/A] (ymasuda)
Assigned to: Nobody/Anonymous (nobody)
Summary: self.button.pack() in tkinter.tex example

Initial Comment:
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.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1094815&group_id=5470


More information about the Patches mailing list