How to call instance of different class from child class?
<p>Here is the code I am working on:</p>

<pre><code>from html import *
class Form(BlockContainer):
    def __init__(self, form):
        name = 'form'
        BlockContainer.__init__(self, name)
        self.addAttr('method', 'post')
        self.addAttr('action', form)

class Label(Container):
    def __init__(self, label):
        name = 'label'
        Container.__init__(self, name)
        self.addAttr('for', label)

class Input(Tag):
    def __init__(self, text, title):
        name = 'input'
        Tag.__init__(self, name)
        self.addAttr('type', text)
        self.addAttr('name', title)

class Box(Div):
    def __init__(self, text):
        Div.__init__(self)
        self.addAttr('class', 'box')
        self.addText(text)

class StatusBox(Box):
    def __init__(self, name):
        Box.__init__(self, name)
</code></pre>

<p>Okay, so I am trying to call the classes Input, Label, and Form from within the class StatusBox. I have tried calling them like this:</p>

<pre><code>Class StatusBox(Box):
    def __init__(self, name):
        Box.__init__(self, name)
        Form('blahblablah')
        Label('okiedokie')
        Input('whatever','okay')
</code></pre>

<p>But when I call them like this, I get nothing. I construct these classes from the shell and they work as intended...</p>

<p>Okay, so from the shell, Form should return this:</p>

<pre><code>    t = Form('/savedata')
    # t renders as: '\n&lt;form method="post" action="/savedata" /&gt;'
</code></pre>

<p>so how do I get this returned in StatusBox class?
If I assign to a variable and then return, I get an error 'constructor should return NONE'</p>
