Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

background image in python

om tkinter import *
from PIL import ImageTk

canvas = Canvas(width=600, height=800, bg='blue')
canvas.pack(expand=YES, fill=BOTH)

image = ImageTk.PhotoImage(file="File route")
canvas.create_image(10, 10, image=image, anchor=NW)

mainloop()
Comment

PREVIOUS NEXT
Code Example
Python :: seaborn plot dpi 
Python :: pandas columns add prefix 
Python :: minimum and max value in all columns pandas 
Python :: dict to bytes python 
Python :: django related_name abstract class 
Python :: python blackjack 
Python :: pandas dataframe hist title 
Python :: closing text files in python 
Python :: numpy style docstrings 
Python :: Need Clang = 7 to compile Filament from source 
Python :: python how often character ins tring 
Python :: make a message appear after specified Time python 
Python :: talos get best model 
Python :: python random choice from list 
Python :: how to add subtitle matplotlib 
Python :: how to move mouse with pyautogui 
Python :: how to convert async function to sync function in python 
Python :: no such table: django_session 
Python :: typingclub hack python 
Python :: assert len(lex) < self.bucket_specs[-1][1] 
Python :: python timestamp shift one day 
Python :: create zero array in python 
Python :: python seaborn heatmap decrease annot size 
Python :: koncemzem 
Python :: sigmoid in python from scratch 
Python :: list(set()) python remove order 
Python :: replace column values pandas 
Python :: check if response is 200 python 
Python :: How to create an efficient median finder for a stream of values, in Python? 
Python :: print no new line python 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =