On Mon, Dec 15, 2014 at 11:31 AM, Davy Cottet <[email protected]> wrote:
> Hi,
> I've no problem importing leoQt submodules but no way to import
> subsubmodules :
> For example :
> from leo.core.leoQt import QtCore
> -> OK
> object = QtCore.QObject
> -> OK
> from leo.core.leoQt.QtCore import QObject
> -> ImportError: No module named QtCore
>
> Since I'm importing existing code into Leo, I would prefer not having to
> replace every subModule by QtCore.subModule and so...
>
The following works:
QObject = QtCore.QObject
>
> Is this a known and wanted situation or it can be considered as a bug ?
>
It's not a bug, imo. There may be unavoidable changes to existing Qt code
in order to use leo.core.leoQt. I'll consider adding additional symbols to
the leoQt namespace, but probably only for Qt modules.
Edward
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.