From: W. Trevor King Date: Mon, 2 Aug 2010 13:38:02 +0000 (-0400) Subject: Update the curve in ui.gui after a vclamp plugin command. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4fcac516cf578fcbb0a378e6fa1d7c5343a0c4f0;p=hooke.git Update the curve in ui.gui after a vclamp plugin command. --- 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