Python Forum
Background Image FullScreen
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Background Image FullScreen
#1
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]
Reply
#2
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
Reply
#3
(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
Reply
#4
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
Reply
#5
(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.
Reply
#6
canvas is part of tkinter!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  My Background Image Is Not Appearing (Python Tkinter) HailyMary 2 4,215 Mar-14-2023, 06:13 PM
Last Post: deanhystad
  [Tkinter] Not able to get image as background in a Toplevel window finndude 4 3,894 Jan-07-2022, 10:10 PM
Last Post: finndude
Photo Tkinter TEXT background image _ShevaKadu 5 7,750 Nov-02-2020, 10:34 AM
Last Post: joe_momma
  How to check if window is fullscreen or not delphinis 2 3,800 Aug-01-2020, 01:21 PM
Last Post: delphinis
  Unable to put background image on Tkinter Frame jenkins43 2 8,733 Nov-27-2019, 11:38 AM
Last Post: jenkins43
  [pyglet] Why is screen blank when displaying a gif when setting fullscreen = True ? Huudzz 0 2,275 Oct-25-2019, 06:13 PM
Last Post: Huudzz
  [Tkinter] Python 3.5 tk fullscreen nuska012 2 7,970 Dec-11-2018, 06:56 AM
Last Post: jfong
  [Tkinter] Multiple frames with tkinter - How to make them run on fullscreen mode eabs86 3 18,247 Sep-20-2018, 01:27 AM
Last Post: eabs86
  set button background with image of window background gray 3 14,413 Oct-18-2017, 08:22 AM
Last Post: gray

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020