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

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 but I dont know what is the fault( programming language python)  my code is not working well I wondering why I need
to create box with button and I need that box appear in

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!