Python Forum
[Tkinter] Displaying an image that can't be closed
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Displaying an image that can't be closed
#1
I am trying to display an image on the desktop that cannot be closed, or at least not without opening Task Manager.

I have a code that displays a frameless image, but it can easily be terminated with the task bar.I want to eliminate that possibility. If I can remove the task from the taskbar (sort of like "hiding the task") that would be even better (but if that's not possible then the first option is alright as well Tongue )

I am using Python 3.5 by the way, maybe that's important

from tkinter import Toplevel, Tk, Label, PhotoImage

win = Tk()

win.attributes('-alpha', 0.0)
win.iconify()

window = Toplevel(win)
window.geometry("500x500+100+100")
window.overrideredirect(1)

photo = PhotoImage(file="test.png")

label = Label(window, image=photo)
label.pack()

win.mainloop()
Reply


Messages In This Thread
Displaying an image that can't be closed - by nicochulo - Feb-14-2018, 10:32 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [closed] "checked" variable (attribute?) origin? paul18fr 4 727 Mar-05-2024, 04:20 PM
Last Post: deanhystad
  Displaying Image Files in a GUI vman44 1 1,851 Mar-02-2020, 02:18 AM
Last Post: Larz60+
  [Tkinter] Extrakt a Variable from a closed tkinter window hWp 5 3,910 Aug-23-2019, 09:01 PM
Last Post: woooee
  [WxPython] how to reopen a closed tab of wx.aui.Notebook? royer14 2 3,357 Feb-18-2019, 12:31 AM
Last Post: royer14
  Trouble displaying an image in PyQt4 Vysero 2 3,149 Jul-01-2018, 05:25 PM
Last Post: Alfalfa
  [PyQt] Whole application is closed by subwindows Alfalfa 1 7,454 Oct-03-2017, 03:22 PM
Last Post: Alfalfa

Forum Jump:

User Panel Messages

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