Question: my code is not working well I wondering why I need to create box with button and I need that box appear in the screen

1 import tkinter as tk 2 rt = tk.Tk() 3 rt.title('Stock Control System:) 4 button = tk.button(rt, text='Mybutton', width=30, command=rt.destroy, fg='re') 5 button.pack() 6 rt.mainloop button = tk.button(rt, text='Mybutton', width=30, command=rt.destroy, fg='re') AttributeError: 'module' object has no attribute 'button' In [18]: In [18]: IPython console History log
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
