creation: 2017-01-11
short example on how to use base64 image in tkinter
import tkinter as tk
image_data =
root = tk.Tk()
image = tk.PhotoImage(data = image_data)
dimensions = "image size: %dx%d" % (image.width(), image.height())
icon = tk.Label(root, compound = "top" , image = image, text = dimensions)
icon.place(x = 50 , y = 30 )
root.mainloop()
|