Background Image FullScreen - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: GUI (https://python-forum.io/forum-10.html) +--- Thread: Background Image FullScreen (/thread-26272.html) |
Background Image FullScreen - oguzcan - Apr-25-2020 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) RE: Background Image FullScreen - Larz60+ - Apr-26-2020 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 RE: Background Image FullScreen - oguzcan - Apr-26-2020 (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 Dont same subject.... I want to other thing RE: Background Image FullScreen - Larz60+ - Apr-26-2020 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 RE: Background Image FullScreen - oguzcan - Apr-26-2020 (Apr-26-2020, 04:59 AM)Larz60+ Wrote: Take a look at the previous thread.No. I use Windows. I dont use canvas. RE: Background Image FullScreen - Larz60+ - Apr-26-2020 canvas is part of tkinter! |