Skip to content

Commit

Permalink
(pulse2_update_notification) Pillow is python3 only, we need to find/…
Browse files Browse the repository at this point in the history
…install an older version
  • Loading branch information
neoclust committed Apr 10, 2023
1 parent 08de4e2 commit a4da0fb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pulse_xmpp_agent/bin/pulse2_update_notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
import tkMessageBox
else:
import tkinter as tk ## Python 3.x

from PIL import Image, ImageTk
from PIL import Image, ImageTk

import subprocess

Expand Down Expand Up @@ -183,14 +182,15 @@ def showNotification(self):
fg = 'white',
font=("Open Sans Soft Regular",self.sizenotification)).pack()

# Create a photoimage object of the image in the path
medullaLogoLocation = Image.open("Image3.png")
medullaLogo = ImageTk.PhotoImage(medullaLogoLocation)
if not sys.version_info[0] < 3:
# Create a photoimage object of the image in the path
medullaLogoLocation = Image.open("Image3.png")
medullaLogo = ImageTk.PhotoImage(medullaLogoLocation)

Medullalabel = tk.Label(image=medullaLogo, bg='#25607d')
Medullalabel.image = medullaLogo
Medullalabel = tk.Label(image=medullaLogo, bg='#25607d')
Medullalabel.image = medullaLogo

Medullalabel.place(x=15, y=12)
Medullalabel.place(x=15, y=12)

self.root.update_idletasks()
# Remove window decorations
Expand Down

0 comments on commit a4da0fb

Please sign in to comment.