From 34310b0a5fdb0aa2a267d5fc1c4b141a6055c124 Mon Sep 17 00:00:00 2001 From: Luis Antonio Obis Aparicio Date: Wed, 28 Aug 2024 12:47:25 +0200 Subject: [PATCH] ruff --- gui/CAEN-N1471H/gui.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gui/CAEN-N1471H/gui.py b/gui/CAEN-N1471H/gui.py index 88c8733..4e94b81 100644 --- a/gui/CAEN-N1471H/gui.py +++ b/gui/CAEN-N1471H/gui.py @@ -405,14 +405,14 @@ def process_commands(self): def issue_command(self, func, *args, **kwargs): # do not stack read_values commands (critical if reading values is slow) if ( - func.__name__ == "read_values" - and (func, args, kwargs) in self.command_queue.queue + func.__name__ == "read_values" + and (func, args, kwargs) in self.command_queue.queue ): return # print('\n'), [print(i) for i in self.command_queue.queue] # debug self.command_queue.put((func, args, kwargs)) if ( - func.__name__ != "read_values" + func.__name__ != "read_values" ): # because it is constantly reading values in the background self.root.config(cursor="watch") self.root.update()