def pop_qrcode_window(qrcode_buff):
if dont_show_qrcode():
return
def on_button_clicked():
try:
open(magic_file_name, "w").write("""Hi, guy
If you like this app, a little donation will make it better!
Re-run the app to remove QR-code on your wallpaper""" )
except:
pass
finally:
sys.exit(1)
tk = Tk()
tk.wm_attributes('-topmost', 1)
tk.title(u"???????BLUEEARTH?????")
img2 = Image.open(StringIO(qrcode_buff))
tk_img = ImageTk.PhotoImage(img2)
label = Label(tk, image=tk_img)
label.pack()
button = Button(tk, text="Don't show this anymore", command=on_button_clicked, bg="green")
button.pack()
tk.mainloop()
评论列表
文章目录