blueearth.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:blueearth 作者: littleningmeng 项目源码 文件源码
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()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号