From 3778be72d87ab10801fbb1ee825b89ca970ef87f Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 2 Aug 2010 09:38:02 -0400 Subject: [PATCH] Update the curve in ui.gui after a vclamp plugin command. --- hooke/ui/gui/__init__.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/hooke/ui/gui/__init__.py b/hooke/ui/gui/__init__.py index 9a685e6..470b6ec 100644 --- a/hooke/ui/gui/__init__.py +++ b/hooke/ui/gui/__init__.py @@ -419,6 +419,23 @@ class HookeFrame (wx.Frame): """ pass + def _postprocess_zero_block_surface_contact_point( + self, command, args={}, results=[]): + """Update the curve, since the available columns may have changed. + """ + if isinstance(results[-1], Success): + self.execute_command( + command=self._command_by_name('get curve')) + + def _postprocess_add_block_force_array( + self, command, args={}, results=[]): + """Update the curve, since the available columns may have changed. + """ + if isinstance(results[-1], Success): + self.execute_command( + command=self._command_by_name('get curve')) + + # TODO: cruft -- 2.26.2