add debug logs for popups

This commit is contained in:
onyx-and-iris 2023-09-02 04:49:36 +01:00
parent 2666d8081a
commit b3771b13c0

View File

@ -141,6 +141,8 @@ class NVDAVMWindow(psg.Window):
filepath = None filepath = None
while True: while True:
event, values = window.read() event, values = window.read()
self.logger.debug(f"event::{event}")
self.logger.debug(f"values::{values}")
if event in (psg.WIN_CLOSED, "Cancel"): if event in (psg.WIN_CLOSED, "Cancel"):
break break
elif event.endswith("||FOCUS IN"): elif event.endswith("||FOCUS IN"):
@ -189,8 +191,8 @@ class NVDAVMWindow(psg.Window):
data = {} data = {}
while True: while True:
event, values = window.read() event, values = window.read()
print(f"event: {event}") self.logger.debug(f"event::{event}")
print(f"values: {values}") self.logger.debug(f"values::{values}")
if event in (psg.WIN_CLOSED, "Cancel"): if event in (psg.WIN_CLOSED, "Cancel"):
break break
elif event.endswith("||KEY ENTER"): elif event.endswith("||KEY ENTER"):