comparison bing4desktop/bing4desktop.py @ 33:1d063d3bf7ff

bing4desktop-0.240208-2.1
author prymula <prymula76@outlook.com>
date Thu, 08 Feb 2024 20:41:03 +0100
parents 40f51ad1e9ba
children 9bcb32b7526a
comparison
equal deleted inserted replaced
32:40f51ad1e9ba 33:1d063d3bf7ff
18 import json 18 import json
19 import tempfile 19 import tempfile
20 import shutil 20 import shutil
21 import glob 21 import glob
22 22
23 ver = "0.240208-1" 23 ver = "0.240208-2"
24 24
25 BING_URI_BASE = "http://www.bing.com" 25 BING_URI_BASE = "http://www.bing.com"
26 BING_WALLPAPER_PATH = "/HPImageArchive.aspx?format=js&idx=0&n=1&mkt=en-US" 26 BING_WALLPAPER_PATH = "/HPImageArchive.aspx?format=js&idx=0&n=1&mkt=en-US"
27 full_path="" 27 full_path=""
28 actualImage = 0 28 actualImage = 0
199 item("Ustaw Tapetę", lambda icon, item: wp.set(full_path, True)), 199 item("Ustaw Tapetę", lambda icon, item: wp.set(full_path, True)),
200 item('Tapeta poprzednia', lambda icon, item: self.change_pic(1, icon)), 200 item('Tapeta poprzednia', lambda icon, item: self.change_pic(1, icon)),
201 item('Tapeta następna', lambda icon, item: self.change_pic(-1, icon)), 201 item('Tapeta następna', lambda icon, item: self.change_pic(-1, icon)),
202 item('Opis zdjęcia', lambda icon, item: icon.notify(TMP_TITLE + ' --- ' + TMP_COPYRIGHT)), 202 item('Opis zdjęcia', lambda icon, item: icon.notify(TMP_TITLE + ' --- ' + TMP_COPYRIGHT)),
203 item('O Programie', lambda icon, item: self.about()), 203 item('O Programie', lambda icon, item: self.about()),
204
205 item('Wyjdź', self.quit_window) 204 item('Wyjdź', self.quit_window)
206 ) 205 )
207 self.frame = tk.Frame(self.window, width=600, height=400) 206 self.frame = tk.Frame(self.window, width=600, height=400)
208 self.frame.pack() 207 self.frame.pack()
209 self.frame.place(anchor='center', relx=0.5, rely=5) 208 self.frame.place(anchor='center', relx=0.5, rely=5)