importing class and its function from another file

Posted by user343934 on Stack Overflow See other posts from Stack Overflow or by user343934
Published on 2010-06-01T10:38:03Z Indexed on 2010/06/01 11:23 UTC
Read the original article Hit count: 259

Filed under:
|
|

Hi everyone,

I am having little problem with importing classes in python. My work flow goes like this

index.py

    class Template:

        def header():
        def body():
        def form():
        def footer():

display.py

I want to call function header(), body() and footer () in my display.py page. Will anyone make me clear about this issue in python. Thanks for your concern.

© Stack Overflow or respective owner

Related posts about python

Related posts about beginner