Rename WallMountedBox to _WallMountedBox
as it is an abstract class and should not appear in the list of generators. Thanks to https://github.com/HaSHsss for reporting! Resolves: #408
This commit is contained in:
parent
ad056de77f
commit
277e0f2c38
|
@ -15,9 +15,9 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from boxes import *
|
from boxes import *
|
||||||
from boxes.walledges import WallMountedBox
|
from boxes.walledges import _WallMountedBox
|
||||||
|
|
||||||
class WallCaliper(WallMountedBox):
|
class WallCaliper(_WallMountedBox):
|
||||||
"""Holds a single caliper to a wall"""
|
"""Holds a single caliper to a wall"""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from boxes import *
|
from boxes import *
|
||||||
from boxes.walledges import WallMountedBox
|
from boxes.walledges import _WallMountedBox
|
||||||
|
|
||||||
class FrontEdge(edges.Edge):
|
class FrontEdge(edges.Edge):
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ class FrontEdge(edges.Edge):
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class WallChiselHolder(WallMountedBox):
|
class WallChiselHolder(_WallMountedBox):
|
||||||
"""Wall tool holder for chisels, files and similar tools"""
|
"""Wall tool holder for chisels, files and similar tools"""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
|
@ -15,9 +15,9 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from boxes import *
|
from boxes import *
|
||||||
from boxes.walledges import WallMountedBox
|
from boxes.walledges import _WallMountedBox
|
||||||
|
|
||||||
class WallConsole(WallMountedBox):
|
class WallConsole(_WallMountedBox):
|
||||||
"""Outset and angled plate to mount stuff to"""
|
"""Outset and angled plate to mount stuff to"""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
|
@ -16,13 +16,13 @@
|
||||||
|
|
||||||
from boxes import *
|
from boxes import *
|
||||||
from .drillstand import DrillStand
|
from .drillstand import DrillStand
|
||||||
from boxes.walledges import WallMountedBox
|
from boxes.walledges import _WallMountedBox
|
||||||
|
|
||||||
class WallDrillBox(DrillStand, WallMountedBox):
|
class WallDrillBox(DrillStand, _WallMountedBox):
|
||||||
"""Box for drills with each compartment with a different height"""
|
"""Box for drills with each compartment with a different height"""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
WallMountedBox.__init__(self) # don't call DrillStand.__init__
|
_WallMountedBox.__init__(self) # don't call DrillStand.__init__
|
||||||
|
|
||||||
self.addSettingsArgs(edges.StackableSettings, height=1.0, width=3)
|
self.addSettingsArgs(edges.StackableSettings, height=1.0, width=3)
|
||||||
self.buildArgParser(sx="25*6", sy="10:20:30", sh="25:40:60")
|
self.buildArgParser(sx="25*6", sy="10:20:30", sh="25:40:60")
|
||||||
|
|
|
@ -15,9 +15,9 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from boxes import *
|
from boxes import *
|
||||||
from boxes.walledges import WallMountedBox
|
from boxes.walledges import _WallMountedBox
|
||||||
|
|
||||||
class WallEdges(WallMountedBox):
|
class WallEdges(_WallMountedBox):
|
||||||
"""Shows the different edge types for wall systems"""
|
"""Shows the different edge types for wall systems"""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from boxes import *
|
from boxes import *
|
||||||
from boxes.walledges import WallMountedBox
|
from boxes.walledges import _WallMountedBox
|
||||||
|
|
||||||
class PinEdge(edges.BaseEdge):
|
class PinEdge(edges.BaseEdge):
|
||||||
def __call__(self, length, **kw):
|
def __call__(self, length, **kw):
|
||||||
|
@ -37,7 +37,7 @@ class PinEdge(edges.BaseEdge):
|
||||||
def margin(self):
|
def margin(self):
|
||||||
return self.settings.thickness+self.settings.pinlength
|
return self.settings.thickness+self.settings.pinlength
|
||||||
|
|
||||||
class WallPinRow(WallMountedBox):
|
class WallPinRow(_WallMountedBox):
|
||||||
"""Outset and angled plate to mount stuff to"""
|
"""Outset and angled plate to mount stuff to"""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
|
@ -15,9 +15,9 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from boxes import *
|
from boxes import *
|
||||||
from boxes.walledges import WallMountedBox
|
from boxes.walledges import _WallMountedBox
|
||||||
|
|
||||||
class WallPlaneHolder(WallMountedBox):
|
class WallPlaneHolder(_WallMountedBox):
|
||||||
"""Hold a plane to a wall"""
|
"""Hold a plane to a wall"""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
|
@ -15,9 +15,9 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from boxes import *
|
from boxes import *
|
||||||
from boxes.walledges import WallMountedBox
|
from boxes.walledges import _WallMountedBox
|
||||||
|
|
||||||
class WallPliersHolder(WallMountedBox):
|
class WallPliersHolder(_WallMountedBox):
|
||||||
"""Bar to hang pliers on"""
|
"""Bar to hang pliers on"""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from boxes import *
|
from boxes import *
|
||||||
from boxes.walledges import WallMountedBox
|
from boxes.walledges import _WallMountedBox
|
||||||
|
|
||||||
class FrontEdge(edges.Edge):
|
class FrontEdge(edges.Edge):
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ class FrontEdge(edges.Edge):
|
||||||
self.polyline(w, (90, r1), ds-r1-r2, (-90, r2), ws-2*r2,
|
self.polyline(w, (90, r1), ds-r1-r2, (-90, r2), ws-2*r2,
|
||||||
(-90, r2), ds-r1-r2, (90, r1), w)
|
(-90, r2), ds-r1-r2, (90, r1), w)
|
||||||
|
|
||||||
class WallSlottedHolder(WallMountedBox):
|
class WallSlottedHolder(_WallMountedBox):
|
||||||
"""Wall tool holder with slots"""
|
"""Wall tool holder with slots"""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
|
@ -15,9 +15,9 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from boxes import *
|
from boxes import *
|
||||||
from boxes.walledges import WallMountedBox
|
from boxes.walledges import _WallMountedBox
|
||||||
|
|
||||||
class WallStairs(WallMountedBox):
|
class WallStairs(_WallMountedBox):
|
||||||
"""Platforms in different heights e.g. for screw drivers"""
|
"""Platforms in different heights e.g. for screw drivers"""
|
||||||
|
|
||||||
description = """You are supposed to add holes or slots to the stair tops yourself using Inkscape or another vector drawing or CAD program.
|
description = """You are supposed to add holes or slots to the stair tops yourself using Inkscape or another vector drawing or CAD program.
|
||||||
|
|
|
@ -16,9 +16,9 @@
|
||||||
|
|
||||||
from boxes import *
|
from boxes import *
|
||||||
from boxes.lids import _TopEdge
|
from boxes.lids import _TopEdge
|
||||||
from boxes.walledges import WallMountedBox
|
from boxes.walledges import _WallMountedBox
|
||||||
|
|
||||||
class WallTypeTray(WallMountedBox, _TopEdge):
|
class WallTypeTray(_WallMountedBox, _TopEdge):
|
||||||
"""Type tray - allows only continuous walls"""
|
"""Type tray - allows only continuous walls"""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from boxes import *
|
from boxes import *
|
||||||
from boxes.walledges import WallMountedBox
|
from boxes.walledges import _WallMountedBox
|
||||||
|
|
||||||
class SlottedEdge(edges.Edge):
|
class SlottedEdge(edges.Edge):
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ class SlottedEdge(edges.Edge):
|
||||||
self.polyline(0, -45)
|
self.polyline(0, -45)
|
||||||
self.edge(length-l)
|
self.edge(length-l)
|
||||||
|
|
||||||
class WallWrenchHolder(WallMountedBox):
|
class WallWrenchHolder(_WallMountedBox):
|
||||||
"""Hold a set of wrenches at a wall"""
|
"""Hold a set of wrenches at a wall"""
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
from .edges import Settings, BaseEdge
|
from .edges import Settings, BaseEdge
|
||||||
from boxes import Boxes, edges
|
from boxes import Boxes, edges
|
||||||
|
|
||||||
class WallMountedBox(Boxes):
|
class _WallMountedBox(Boxes):
|
||||||
ui_group = "WallMounted"
|
ui_group = "WallMounted"
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
Loading…
Reference in New Issue