I am making a program which a user can create his own tkinter buttons. However I have a problem with the custom name. It creates a name by storing it in a variable however it completely ignores the variable even when it is a direct variable. E.g: variable = "TEXT HERE"
Folder = open(fold2, "r")
Title = Folder.readline(1)
FolderBNam = Button(self, anchor=tk.W, text=Title, command= lambda: self.controller.show_frame(FoldButton1))
FolderBNam.place(height=55, width=75,x=25,y=100)
Folder.close
I have searched for answers of course and even tried to use Lamdba which didn't go so good.
readline(1)?