From 6091cf955f72fd523b1f68f47e67c671d5fdd0f0 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Sun, 10 May 2020 16:13:54 +0200 Subject: [PATCH] Comsole2: Move to Box group in the UI --- boxes/__init__.py | 10 ++++++++++ boxes/generators/console2.py | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/boxes/__init__.py b/boxes/__init__.py index bc6da4f..539ec5e 100755 --- a/boxes/__init__.py +++ b/boxes/__init__.py @@ -1496,6 +1496,16 @@ class Boxes: @restore def fingerHoleRectangle(self, dx, dy, x=0., y=0., angle=0., outside=False): + """ + Place finger holes for four walls - attaching a box on this plane + + :param dx: size in x direction + :param dy: size in y direction + :param x: x position of the center + :param y: y position of the center + :param angle: angle in which the rectangle is placed + :param outside: meassure size from the outside of the walls - not the inside + """ self.moveTo(x, y, angle) d = 0.5*self.thickness if outside: diff --git a/boxes/generators/console2.py b/boxes/generators/console2.py index dc0023c..87832d4 100644 --- a/boxes/generators/console2.py +++ b/boxes/generators/console2.py @@ -19,7 +19,7 @@ from boxes import * class Console2(Boxes): """Console with slanted panel and service hatches""" - ui_group = "Unstable" #"Box" + ui_group = "Box" description = """ This box is designed as a housing for electronic projects. It has hatches that can be re-opened with simple tools. It intentionally cannot be opened with bare hands - if build with thin enough material.