From: W. Trevor King Date: Sat, 14 Aug 2010 08:20:33 +0000 (-0400) Subject: Don't process unhandled arguments (e.g. 'driver') in HookeFrame.execute_command X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=51ae62c657f27d54c8eeeb1ee1cbeb9422f56dd5;p=hooke.git Don't process unhandled arguments (e.g. 'driver') in HookeFrame.execute_command --- diff --git a/hooke/ui/gui/__init__.py b/hooke/ui/gui/__init__.py index 782691f..3d8a92d 100644 --- a/hooke/ui/gui/__init__.py +++ b/hooke/ui/gui/__init__.py @@ -321,6 +321,8 @@ class HookeFrame (wx.Frame): index = int(name[len(arg.name):]) args[arg.name][index] = value for arg in command.arguments: + if arg.name not in args: + continue # undisplayed argument, e.g. 'driver' types. count = arg.count if hasattr(arg, '_display_count'): # support HACK in props_from_argument() count = arg._display_count