[QUOTE=abders;1647167]I just finished a program, it worked perfectly, then I changed a bit of it, and now it won't work at all, even if I change it back.
[CODE]self.secret_txt = Text(self, width = 35, height = 5, wrap = WORD).grid(row = 3, column = 0, columnspan = 2, sticky = … Read More
[QUOTE=abders;1647273]The trouble is, it shouldn't become None at all..
Here is the whole code:
[CODE]from tkinter import *
def __init__(self, master):
self.inst_lbl = Label(self, text = "Enter the password for the secret of longevity").grid(row = 0, column = 0, columnspan = 2, … Read More
[QUOTE]I just finished a program[/QUOTE] Well actually you copied the program out of the book, which with no offense to the author, isn't the greatest. I've found a large amount of the code in that book to be a bit buggy, or unclear. The way I got over that was … Read More
I understand it now. Thanks for the help, and sorry I used up your time on this trifle matter.
I thought I could make on single line, instead of two:
[CODE]self.secret_txt = Text(self, width = 35, height = 5, wrap = WORD).grid(row = 3, column = 0, columnspan = 2, … Read More
You need to actually save the widget only if you refer to it later to change it, also some case it is necessary to store the widget somewhere so garbage collector does not collect it as rubbish. If you do grid together with creation, you should not assign the None … Read More