简体   繁体   中英

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

I am trying to make a game overlay with python and it needs to support a lot of features for my game overlay to work the way it was intended to.

It needs to have a transparent window, pass clicks both right and left (to the application underneath it), pass all keyboard keys (to the application underneath it), and FINALY can still collect all the mouse movement and keyboard press events.

I don't even know if all of this is possible, or if I need to do this in another pip or language

I am on 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()

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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