From c24a5a25568dc7496b30abe6d9c64cec4e6b15ed Mon Sep 17 00:00:00 2001 From: sahehb Date: Mon, 11 Mar 2024 08:32:19 +0000 Subject: [PATCH] deploy: da80739aaba3f39a819451b17f1ead61d4dec8ba --- .../contours/example6/ContourExample6.mlab | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/examples/data_objects/contours/example6/ContourExample6.mlab b/examples/data_objects/contours/example6/ContourExample6.mlab index 1782def81..1fd1119f2 100644 --- a/examples/data_objects/contours/example6/ContourExample6.mlab +++ b/examples/data_objects/contours/example6/ContourExample6.mlab @@ -11,7 +11,7 @@ module View2D { window _default { geometry = "983 196 753 595" sizeHint = "400 400" - wasOpen = yes + wasOpen = no } } } @@ -198,7 +198,7 @@ module CSOManager { listSingleRemoveEmptyGroupHandling = RemoveAlways listDefaultRemoveEmptyGroupHandling = RemoveAlways enableUndoRedo = TRUE - numUndos = 2 + numUndos = 1 numRedos = 0 undoStackLimit = 16 useSelectionCSONotification = FALSE @@ -426,7 +426,7 @@ module CSOLabelRenderer { moduleGroupName = "" windows { window _default { - geometry = "734 292 453 557" + geometry = "549 290 453 557" sizeHint = "453 557" wasOpen = no } @@ -440,20 +440,17 @@ module CSOLabelRenderer { shouldDrawLabelBorderForSelectedCSO = TRUE labelBorderMarginX = 2 labelBorderMarginY = 2 - currentCSOId = 2 - labelName = "Rectangle 2" + currentCSOId = 1 + labelName = "Distance Line 1" labelCaption = "" - labelString = "Length: 158.79 mm -Area: 1546.56 mm^2" + labelString = "Length: 61.52 mm" labelCode = "if cso.getSubType() == 'distanceLine': labelString = f'{userData0} {cso.getLength():.2f} mm' - labelName = userData1 - labelName += str(cso.getId()) + labelName = f'{userData1} {cso.getId()}' elif cso.getSubType() == 'rectangle': labelString = f'{userData0} {cso.getLength():.2f} mm\\n' labelString += f'{userData2} {cso.getArea():.2f} mm^2' - labelName = userData3 - labelName += str(cso.getId()) + labelName = f'{userData3} {cso.getId()}' deviceOffsetX = 0 deviceOffsetY = 0" shouldRenderLabelName = TRUE