What is the best/common way to structure ur python code for an
application?

For example...if I create some custom GUI widgets I have this

C:\stuff
    --> gui
        --: MyCustomWidget.py
    --: TestWidgets.py

so MyCustomWidget.py has one class, class MyCustomWidget: ...

so from TestWidgets.py i have to do this

from gui import *

widget = gui.MyCustomWidget.MyCustomWidge()

...seems weird, how should I structure this?  Is it not common to have
one class in a .py?

thanks

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to