Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def make_button_img(self, w, h, url, func, pos, col,row,alinhamento):
- self.arq = Image.open(url).resize((w, h), Image.ANTIALIAS)
- self.img.append(ImageTk.PhotoImage(self.arq))
- btn = Button(self, image=self.img[pos],activeforeground="Green",relief='flat', height=h, width=w, command=func)
- btn.grid(column=col, row=row,pady=15,sticky=alinhamento)
- return btn
Add Comment
Please, Sign In to add comment