Mercurial > hg > pub > prymula > scripts
diff bing4desktop/bing4desktop.py @ 13:73fd89b46da4
bing4desktop-0.240206-3
author | prymula <prymula76@outlook.com> |
---|---|
date | Tue, 06 Feb 2024 17:47:04 +0100 |
parents | c01d7edb9cb9 |
children | 18816a0c1fc2 |
line wrap: on
line diff
--- a/bing4desktop/bing4desktop.py Tue Feb 06 12:01:38 2024 +0100 +++ b/bing4desktop/bing4desktop.py Tue Feb 06 17:47:04 2024 +0100 @@ -22,7 +22,7 @@ import shutil import glob -ver = "0.240206-0" +ver = "0.240206-3" BING_URI_BASE = "http://www.bing.com" BING_WALLPAPER_PATH = "/HPImageArchive.aspx?format=js&idx=1&n=1&mkt=en-US" @@ -183,13 +183,11 @@ for ico in ['./bing.ico', '/usr/share/bing4desktop/bing.ico']: try: self.image = Image.open(ico) - except FileNotFoundError as fs: - print ('W bieżącym katalogu, brak ikony, ', fs) + except: + print ('W bieżącym katalogu, brak ikony ' + ico) finally: - break - - #if self.image != None: - # break + if self.image != None: + break self.tmp = None self.menu = ( @@ -214,7 +212,7 @@ def about(self): global ver messagebox.showinfo("Bing4Desktop","Inspracja:\npystray.readthedocs.io/en/latest/usage.html\n\nNapisał: Prymula\n\nLuty 2024\n\nLicencja:\nPublic Domain\n\nWersja: "+ver) - # możliwe że nieprawidlowe + # możliwe że nieprawidlowe po wyjściu z aplikacji zwróci bląd :( self.window.destroy() self.window.update()