Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
lobis committed Aug 28, 2024
1 parent 1313473 commit 34310b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gui/CAEN-N1471H/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 34310b0

Please sign in to comment.