Comsole2: Move to Box group in the UI

This commit is contained in:
Florian Festi 2020-05-10 16:13:54 +02:00
parent 27264f8c08
commit 6091cf955f
2 changed files with 11 additions and 1 deletions

View File

@ -1496,6 +1496,16 @@ class Boxes:
@restore @restore
def fingerHoleRectangle(self, dx, dy, x=0., y=0., angle=0., outside=False): 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) self.moveTo(x, y, angle)
d = 0.5*self.thickness d = 0.5*self.thickness
if outside: if outside:

View File

@ -19,7 +19,7 @@ from boxes import *
class Console2(Boxes): class Console2(Boxes):
"""Console with slanted panel and service hatches""" """Console with slanted panel and service hatches"""
ui_group = "Unstable" #"Box" ui_group = "Box"
description = """ 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. 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.