0
I want to put image on buttons,I’ve done this way before,but agr n is working. Can you help me?
**Detail: **In the same window of Tkinter is instantiated the screen of a Turtle.
def images(self):
imgAdd = tk.PhotoImage(file='./Images/add3.png').subsample(20,20)
imgDel = tk.PhotoImage(file='./Images/menos.png').subsample(20,20)
imgTrash = tk.PhotoImage(file='./Images/trash2.png').subsample(20,20)
imgConfig = tk.PhotoImage(file='./Images/engre3.png').subsample(20,20)
self.Widgets(imgAdd,imgDel,imgTrash,imgConfig)
def Widgets(self,*args):
self.Add = tk.Button(self.frame_left,bd=0,image=args[0],command='')
self.Add.grid(padx=10)
self.Config = tk.Button(self.frame_left,bd=0,image=args[3],command='')
self.Config.grid(padx=10)
self.Trash = tk.Button(self.frame_left,bd=0,image=args[2]',command='')
self.Trash.grid(padx=10)