Mercurial > hg > pub > prymula > scripts
comparison bing4desktop/bing4desktop.py @ 31:c1061f0721d7
bing4desktop-0.240208-1.2
author | prymula <prymula76@outlook.com> |
---|---|
date | Thu, 08 Feb 2024 16:14:36 +0100 |
parents | 4d13cfa90272 |
children | 40f51ad1e9ba |
comparison
equal
deleted
inserted
replaced
30:4d13cfa90272 | 31:c1061f0721d7 |
---|---|
5 # licencja: Public Domain | 5 # licencja: Public Domain |
6 # edytor: Geany | 6 # edytor: Geany |
7 # data: 05-II-2024 | 7 # data: 05-II-2024 |
8 # napisał: Prymula | 8 # napisał: Prymula |
9 | 9 |
10 # python3-pillow-tk | |
11 | |
12 import pystray | 10 import pystray |
13 from pystray import Icon as icon, Menu as menu, MenuItem as item | 11 from pystray import Icon as icon, Menu as menu, MenuItem as item |
14 import tkinter as tk | 12 import tkinter as tk |
15 from tkinter import messagebox | 13 from tkinter import messagebox |
16 from PIL import ImageTk, Image | 14 from PIL import ImageTk, Image |
23 import glob | 21 import glob |
24 | 22 |
25 ver = "0.240208-1" | 23 ver = "0.240208-1" |
26 | 24 |
27 BING_URI_BASE = "http://www.bing.com" | 25 BING_URI_BASE = "http://www.bing.com" |
28 BING_WALLPAPER_PATH = "/HPImageArchive.aspx?format=js&idx=1&n=1&mkt=en-US" | 26 BING_WALLPAPER_PATH = "/HPImageArchive.aspx?format=js&idx=0&n=1&mkt=en-US" |
29 full_path="" | 27 full_path="" |
30 actualImage = 1 | 28 actualImage = 0 |
31 COPYRIGHT_TXT = "" | 29 COPYRIGHT_TXT = "" |
32 TITLE = "" | 30 TITLE = "" |
33 TMP_COPYRIGHT = "" | 31 TMP_COPYRIGHT = "" |
34 TMP_TITLE = "" | 32 TMP_TITLE = "" |
35 | 33 |