From 0e09dee142bd81a6a20dbda93b160ae05e20a46f Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Wed, 15 Dec 2010 15:25:45 +0000 Subject: [PATCH] * ./stratus1: - Change: In st_model, separate View() in two methods, one that load the model into the editor (still named View()) and a Breakpoint() method for putting true stop points. The Breakpoint() method calls the View() method. Will simplificate my explanations to the students... --- stratus1/src/stratus/st_model.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stratus1/src/stratus/st_model.py b/stratus1/src/stratus/st_model.py index d0ce3b82..47cc71df 100644 --- a/stratus1/src/stratus/st_model.py +++ b/stratus1/src/stratus/st_model.py @@ -455,7 +455,7 @@ class Model : self._vbe = True ##### View : in order to see the in the editor ##### - def View ( self, stopLevel=1, message="Status stop point" ) : + def View ( self ) : global EDITOR if not self._hur_cell : @@ -465,6 +465,10 @@ class Model : if EDITOR: EDITOR.setCell ( self._hur_cell ) EDITOR.fit () + + ##### Breakpoint : stop point with a level. Also load in the Viewer ##### + def Breakpoint ( self, stopLevel=1, message="Status stop point" ) : + self.View () Breakpoint.stop ( stopLevel, message ) ##### Save : in order to create the output files #####