Skip to content

Instantly share code, notes, and snippets.

@hitherejoe
Created February 10, 2019 20:54
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
from google.cloud import storage
storage_client = storage.Client()
bucket = storage_client.get_bucket("bucket_id")
blob = bucket.blob(str(chord) + ".png")
blob.download_to_filename(str(chord) + ".png")
image = ImageTk.PhotoImage(Image.open(pilImage))
label = Label(self, image=image)
label.image = image
label.pack(fill=BOTH,expand=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment