I had commented out # entry = Entry(master, width=10, textvariable=self.slowdownVar).grid(row=4, column=1), which had worked fine previously to my changes. I added your two statements after remarking entry = Entry(master, width=10).grid(row=4, column=1)IDLE & the Command prompt window produced, which was really what I was showing in the image that I removed: Exception in Tkinter callback Traceback (most recent call last): File "C:\Python25\Lib\lib-tk\Tkinter.py", line 1403, in __call__ return self.func(*args) File "C:\Sandia_Meteors\Sentinel_Development\Development_Sentuser-Utilities\sentuser\sentuserNC25-Dev5.py", line 579, in OperationalSettings dialog = OperationalSettingsDialog( self.master, set_loc_dict ) File "C:\Sandia_Meteors\Sentinel_Development\Development_Sentuser-Utilities\sentuser\sentuserNC25-Dev5.py", line 84, in __init__ tkSimpleDialog.Dialog.__init__(self, parent) File "C:\Python25\lib\lib-tk\tkSimpleDialog.py", line 64, in __init__ self.initial_focus = self.body(body) File "C:\Sandia_Meteors\Sentinel_Development\Development_Sentuser-Utilities\sentuser\sentuserNC25-Dev5.py", line 115, in body entry.insert(0,self.slowdown) AttributeError: OperationalSettingsDialog instance has no attribute 'slowdown' Kent Johnson wrote: On Mon, Mar 9, 2009 at 8:30 AM, Wayne Watson <sierra_mtnv...@sbcglobal.net> wrote:entry = Entry(master, width=10).grid(row=4, column=1)You have to write this as entry = Entry(master, width=10) entry.grid(row=4, column=1) The grid() method returns None, that is why entry is None. Kent --
Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time) “In mathematics you don't understand things. You just get used to them.” -- John Von Neumann (P.S. The same is true in life.) Web Page: <www.speckledwithstars.net/> |
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor