Pygame中完全透明的窗口? [英] Fully transparent windows in Pygame?

查看:1379
本文介绍了Pygame中完全透明的窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能在Pygame中获得完全透明的窗口(通过它查看桌面)?我发现如何创建一个没有框架的窗口,但似乎没有任何明显的方法使其透明。



我愿意只要Windows和Mac OS X都有解决方案,就可以与系统特定的技术/框架绑定,但我不确定要寻找哪个方向。



只有主题我能够找到推荐使用wxPython ,这不是我可以对于这个特定的项目(需要成为Pygame)。Pygame使用SDL,它不支持透明窗口。PyGame不支持透明窗口。尽管至少在Linux上透明是由窗口管理器完成的,而不是应用程序。

Is it possible to get a fully transparent window in Pygame (see the desktop through it)? I've found how to create a window without a frame, but there doesn't seem to be any obvious way to make it transparent.

I'd be willing to tie into system-specific technology/frameworks as long as there are solutions for both Windows and Mac OS X, but I'm not sure which direction to be looking.

The only topic I was able to find recommended using wxPython, which isn't something I can do for this particular project (needs to be Pygame).

解决方案

PyGame uses SDL, which does not support transparent windows. Although at least on Linux making it transparent is done by the window manager, not the application.

这篇关于Pygame中完全透明的窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆