From: Edward Povazan <epovazan@te...> - 2001-11-29 06:36:30
Being used to the Java one public class per file system, I am wondering what
the normal way of packaging Python modules is. I am using the OOP parts of
Python, so I have a file ABCD containing a class ABCD ... in it.
Of course, importing looks stupid:
from ABCD import ABCD
and so on
Is this the only way to do things? I have a bunch of UI widgets in a folder
named "ui", with files containing one class each.
Seems that to emulate a Java style package usage, I would have to copy all
the widgets source into a file called ui.py so as to
from ui import *
Am I missing something completely?