Mark generators which should not be shown in the web interface
This commit is contained in:
parent
77ba187c70
commit
b6d84b5c58
|
@ -176,6 +176,8 @@ class ArgparseEdgeType:
|
|||
class Boxes:
|
||||
"""Main class -- Generator should sub class this """
|
||||
|
||||
webinterface = True
|
||||
|
||||
def __init__(self):
|
||||
self.formats = formats.Formats()
|
||||
self.argparser = ArgumentParser(description=self.__doc__)
|
||||
|
|
|
@ -16,8 +16,11 @@
|
|||
|
||||
from boxes import *
|
||||
|
||||
class Box(Boxes):
|
||||
class BOX(Boxes): # change class name here and below
|
||||
"""DESCRIPTION"""
|
||||
|
||||
webinterface = False # Change to make visible in web interface
|
||||
|
||||
def __init__(self):
|
||||
Boxes.__init__(self)
|
||||
# remove cli params you do not need
|
||||
|
@ -53,7 +56,7 @@ class Box(Boxes):
|
|||
self.close()
|
||||
|
||||
def main():
|
||||
b = Box()
|
||||
b = BOX() # change to class name
|
||||
b.parseArgs()
|
||||
b.render()
|
||||
|
||||
|
|
|
@ -18,6 +18,8 @@ from boxes import *
|
|||
|
||||
class Castle(Boxes):
|
||||
|
||||
webinterface = False
|
||||
|
||||
def __init__(self):
|
||||
Boxes.__init__(self)
|
||||
|
||||
|
|
|
@ -56,6 +56,9 @@ class RoundedTriangle(edges.Edge):
|
|||
return 90
|
||||
|
||||
class Lamp(Boxes):
|
||||
|
||||
webinterface = False
|
||||
|
||||
def __init__(self):
|
||||
Boxes.__init__(self)
|
||||
|
||||
|
|
|
@ -19,6 +19,9 @@ from boxes import *
|
|||
class Printer(Boxes):
|
||||
|
||||
"""Work in progress"""
|
||||
|
||||
webinterface = False
|
||||
|
||||
def __init__(self, r=250, h=400, d_c=100):
|
||||
Boxes.__init__(self)
|
||||
self.r = r
|
||||
|
|
Loading…
Reference in New Issue