Skip to content

Instantly share code, notes, and snippets.

@hitherejoe
Created February 10, 2019 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hitherejoe/f40d39d66d6568a044f5f943bd0a2903 to your computer and use it in GitHub Desktop.
Save hitherejoe/f40d39d66d6568a044f5f943bd0a2903 to your computer and use it in GitHub Desktop.
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