Tkinter : Create blur transparency

戏子无情 提交于 2020-01-03 06:47:17

问题


I am wondering how to create a blur transparency effect in tkinter. I already know how to add the transparency effect to the window by using

root=Tk()
root.attributes("-alpha",0.95)

But how can you add the blur part?


回答1:


This service is not provided by tkinter. However you can take a screenshot of your app and blur it yourself (see for instance ImageFilter.GaussianBlur or numpy.gaussian filter).



来源:https://stackoverflow.com/questions/38393643/tkinter-create-blur-transparency

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!