diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/projects/__init__.py | 2 | ||||
-rw-r--r-- | examples/smallmenu/__init__.py | 2 | ||||
-rw-r--r-- | examples/transform/__init__.py | 4 | ||||
-rw-r--r-- | examples/transform/actions.py | 3 |
4 files changed, 6 insertions, 5 deletions
diff --git a/examples/projects/__init__.py b/examples/projects/__init__.py index c7919fc..7a17d77 100644 --- a/examples/projects/__init__.py +++ b/examples/projects/__init__.py @@ -42,8 +42,8 @@ # project. It also includes a dependency on a plugin # that can be disabled. +from . import view import examples_common -import view from PythonExtension import QtCreator from PySide2.QtCore import QObject, SIGNAL diff --git a/examples/smallmenu/__init__.py b/examples/smallmenu/__init__.py index 5dcfef9..f01a8b0 100644 --- a/examples/smallmenu/__init__.py +++ b/examples/smallmenu/__init__.py @@ -41,7 +41,7 @@ # This example illustrates the use of action # containers to create new menus -from actions import hello, goodbye +from .actions import hello, goodbye import examples_common from PythonExtension import QtCreator diff --git a/examples/transform/__init__.py b/examples/transform/__init__.py index c58f4e6..4934e72 100644 --- a/examples/transform/__init__.py +++ b/examples/transform/__init__.py @@ -42,9 +42,9 @@ # user supplied function that executes on # a set of files specified by the user -import actions +from . import actions +from . import ui import examples_common -import ui from PythonExtension import QtCreator from PySide2.QtCore import QObject, SIGNAL diff --git a/examples/transform/actions.py b/examples/transform/actions.py index de54d94..da65b21 100644 --- a/examples/transform/actions.py +++ b/examples/transform/actions.py @@ -38,8 +38,9 @@ ## ############################################################################# +from . import ui + from PythonExtension import QtCreator -import ui # Apply a function to each file def run(code): |