簡體   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