From f4e6de744a877137b1f6ec93dd2581e197660e79 Mon Sep 17 00:00:00 2001 From: Mika Bostrom Date: Sun, 23 Aug 2009 10:18:06 +0300 Subject: [PATCH] Fix noop() prototype Hud's noop() is called from gtk event handler, which passes additional arguments. We don't care about them but we do want to prevent HUD-error.txt from being flooded with TypeError messages. --- pyfpdb/Hud.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfpdb/Hud.py b/pyfpdb/Hud.py index 41154c13..e0e14689 100644 --- a/pyfpdb/Hud.py +++ b/pyfpdb/Hud.py @@ -423,7 +423,7 @@ class Stat_Window: return True return False - def noop(self): # i'm going to try to connect the focus-in and focus-out events here, to see if that fixes any of the focus problems. + def noop(self, *args): # i'm going to try to connect the focus-in and focus-out events here, to see if that fixes any of the focus problems. return True def kill_popup(self, popup):