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

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

问题描述

是否可以在 Pygame 中获得完全透明的窗口(通过它查看桌面)?我已经找到了如何创建没有框架的窗口,但似乎没有任何明显的方法可以使其透明.

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.

只要有适用于 Windows 和 Mac OS X 的解决方案,我就愿意参与特定于系统的技术/框架,但我不确定要寻找哪个方向.

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.

我能找到的唯一主题推荐使用 wxPython,这是我无法为这个特定项目做些什么(必须是 Pygame).

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 使用 SDL,它不支持透明窗口.尽管至少在 Linux 上使其透明是由窗口管理器完成的,而不是应用程序.

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天全站免登陆