Python Forum

Full Version: Background Image FullScreen
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do I make the background screen full screen ?

my_image= ImageTk.PhotoImage(Image.open("bgimage.jpg"))
arkaplan = Label(kullaniciEkran, image=my_image)
arkaplan.place(x=0,y=0,width=800,height=600)
[Image: naYCZ3.png]
I just gave you an answer on other thread: https://python-forum.io/Thread-I-m-Student-help
please don't start new thread on same subject
(Apr-26-2020, 02:07 AM)Larz60+ Wrote: [ -> ]I just gave you an answer on other thread: https://python-forum.io/Thread-I-m-Student-help
please don't start new thread on same subject

Dont same subject.... I want to other thing
Take a look at the previous thread.
There is a link to an example that shows how to get a full screen image.
I think you want to be using a canvas rather than a label.
You also need to query the size of the display, and calculate aspect ratios before expanding the image to fit in the screen.
all of this is explained in the example.
Also, I made an assumption by looking at your post that you are using Linux, is that correct? Because, I am not sure this solution will work properly on MS windows. Here's the link again: https://stackoverflow.com/a/53643419
(Apr-26-2020, 04:59 AM)Larz60+ Wrote: [ -> ]Take a look at the previous thread.
There is a link to an example that shows how to get a full screen image.
I think you want to be using a canvas rather than a label.
You also need to query the size of the display, and calculate aspect ratios before expanding the image to fit in the screen.
all of this is explained in the example.
Also, I made an assumption by looking at your post that you are using Linux, is that correct? Because, I am not sure this solution will work properly on MS windows. Here's the link again: https://stackoverflow.com/a/53643419
No. I use Windows. I dont use canvas.
canvas is part of tkinter!