Guest User

Untitled

a guest
Apr 21st, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. def make_button_img(self, w, h, url, func, pos, col,row,alinhamento):
  2. self.arq = Image.open(url).resize((w, h), Image.ANTIALIAS)
  3. self.img.append(ImageTk.PhotoImage(self.arq))
  4. btn = Button(self, image=self.img[pos],activeforeground="Green",relief='flat', height=h, width=w, command=func)
  5.  
  6.  
  7. btn.grid(column=col, row=row,pady=15,sticky=alinhamento)
  8. return btn
Add Comment
Please, Sign In to add comment