繁体   English   中英

如何制作具有许多游戏属性的 tkinter window

[英]how to make a tkinter window with a lot of properties for a game

我正在尝试使用 python 制作游戏叠加层,它需要支持很多功能才能让我的游戏叠加层按预期方式工作。

它需要有一个透明的 window,传递左右点击(传递给它下面的应用程序),传递所有键盘键(传递给它下面的应用程序),最后仍然可以收集所有鼠标移动和键盘按下事件。

我什至不知道这一切是否可能,或者我是否需要用另一种 pip 或语言来执行此操作

我在 windows 10

jesus.py:

from tkinter import *

jesus = Tk()
jesus.title("Minecraft's Jesus")
jesus.attributes("-fullscreen", True)
jesus.attributes("-topmost", True)
jesus.attributes("-alpha", 0.002)
jesus.configure(background='grey')
jesus.mainloop()

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM