gamelib.py
def handle_event(self, tkevent: tk.Event) -> None:
        "Puts an event in the queue so it can be processed."

        if any(isinstance(tkevent.widget, class_check) for class_check in [Button]):
            tkevent.x = tkevent.x_root - self.canvas.winfo_rootx()
            tkevent.y = tkevent.y_root - self.canvas.winfo_rooty()

        _GameThread.events.put(Event(tkevent))
Puts an event in the queue so it can be processed.
Puts an event in the queue so it can be processed.
Puts an event in the queue so it can be processed .
def handle_event(self, tkevent: tk.Event) -> None:
        if any(isinstance(tkevent.widget, class_check) for class_check in [Button]):
            tkevent.x = tkevent.x_root - self.canvas.winfo_rootx()
            tkevent.y = tkevent.y_root - self.canvas.winfo_rooty()
        _GameThread.events.put(Event(tkevent))
def handle_event ( self , tkevent : tk . Event ) -> None : if any ( isinstance ( tkevent . widget , class_check ) for class_check in [ Button ] ) : tkevent . x = tkevent . x_root - self . canvas . winfo_rootx ( ) tkevent . y = tkevent . y_root - self . canvas . winfo_rooty ( ) _GameThread . events . put ( Event ( tkevent ) )
Puts an event in the queue so it can be processed.
Puts an event in the queue so it can be processed .
"Puts an event in the queue so it can be processed."
self
tkevent
tk.Event