From ffc09c7278c8cbd0ac860b1e97f06acd30fe2164 Mon Sep 17 00:00:00 2001 From: daq Date: Sun, 17 Jul 2022 12:16:36 -0500 Subject: [PATCH] uncomment the keyboard binding, so that press enter can trigger an event --- IsegHVController.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/IsegHVController.py b/IsegHVController.py index 15c0037..aaf0ee9 100755 --- a/IsegHVController.py +++ b/IsegHVController.py @@ -102,11 +102,11 @@ layout.append([sg.Combo(comboList, default_value = comboList[0], size = 20, enab window = sg.Window('Iseg HV Control & Monitor', layout, finalize = True, keep_on_top = True) -#for i in range(0, nChannel): -# window[("v%d" % chList[i])].bind("", "_Enter") -# window[("i%d" % chList[i])].bind("", "_Enter") -# window[("v%d" % chList[i])].bind("", "_Enter") -# window[("i%d" % chList[i])].bind("", "_Enter") +for i in range(0, nChannel): + window[("v%d" % chList[i])].bind("", "_Enter") + window[("i%d" % chList[i])].bind("", "_Enter") + window[("v%d" % chList[i])].bind("", "_Enter") + window[("i%d" % chList[i])].bind("", "_Enter") # Event Loop to process "events" and get the "values" of the inputs while True: