On Tue, Nov 11, 2008 at 8:46 AM, Markus Mayer <[EMAIL PROTECTED]> wrote:

> Hi folks.
>
> I'm new to python and have a slight problem importing - or maybe
> understanding - modules. I'm writing a GUI application using Qt4 and
> wanted to separate the business from the view logic. So I have my folder
> structure as following:
>
> project/ main.py
>         important.py
>
> project/ gui/ __init__.py
>              mainwindow.py
>              anotherwindow.py
>
> Now I can import mainwindow etc. from main and important, but how do I
> do it the other way round?
>
> Also, is there maybe a better project layout? I couldn't find anything
> useful on it asking Dr. Google.


Since a couple of days,
I use this construct and it seems to work quite well,
  http://mientki.ruhosting.nl/data_www/pylab_works/pw_importing.html
cheers,
Stef
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to