There is a button:
but1 = Button(icon, text="Show the solution...", font="Arial 14", command=show) but1.grid(column=1, row=3) And there is an event handler when you click on it:
def show(): lf = LabelFrame(icon, text="Solution", font='Arial 12') lf.grid(column=0, row=5, columnspan=4) Label(lf, text='1) A - B = {f1}\n' '2) B & A = {f2}\n' '3) (A - B) | (B & A) = {f3}\n' '4) ( (A - B) | (B & A) ) \ (C | B) = {rez}\n' 'Result: {rez}' .format(f1=log_oper.difference(self.A, self.B), f2=self.B & self.A, f3=(log_oper.difference(self.A, self.B))|(self.B&self.A), rez=initeq.initial_eq(self.A,self.B,self.C),font='Arial 14', justify=LEFT)).grid(column=0, row=5, sticky=W, columnspan=4) The LabelFrame is created in the LabelFrame window with the text:
'1) A - B = {f1}\n' '2) B & A = {f2}\n' '3) (A - B) | (B & A) = {f3}\n' '4) ( (A - B) | (B & A) ) \ (C | B) = {rez}\n' 'Result: {rez}' And here is the question: How to make it so that when you click on a button, it is displayed step by step one item from that text? It can be either automatically or press the button 5 times.
log_oper? Why not justself.A - self.Binstead oflog_oper.difference()? - insolor