Skip to content

Commit

Permalink
cleanup imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jborbely committed Feb 25, 2020
1 parent 8892d6b commit c473d8b
Show file tree
Hide file tree
Showing 11 changed files with 55 additions and 11 deletions.
5 changes: 4 additions & 1 deletion msl/examples/qt/button.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
"""
A :class:`~msl.qt.widget.button.Button` example.
"""
from msl.qt import application, Button
from msl.qt import (
application,
Button
)


def left():
Expand Down
5 changes: 4 additions & 1 deletion msl/examples/qt/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
import random
import logging

from msl.qt import application, Logger
from msl.qt import (
application,
Logger
)


def show():
Expand Down
5 changes: 4 additions & 1 deletion msl/examples/qt/loop_until_abort.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
"""
import tempfile

from msl.qt import prompt, LoopUntilAbort
from msl.qt import (
prompt,
LoopUntilAbort
)


class LoopExample(LoopUntilAbort):
Expand Down
5 changes: 4 additions & 1 deletion msl/examples/qt/loop_until_abort_sleep.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"""
import random

from msl.qt import LoopUntilAbort, Sleep
from msl.qt import (
LoopUntilAbort,
Sleep
)


class LoopExampleSleep(LoopUntilAbort):
Expand Down
7 changes: 6 additions & 1 deletion msl/examples/qt/show_standard_icons.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
Display all the icons available in :obj:`QtWidgets.QStyle.StandardPixmap` and in
the *standard* Windows DLL/EXE files.
"""
from msl.qt import QtWidgets, QtCore, application, io
from msl.qt import (
QtWidgets,
QtCore,
application,
io
)

try:
# check if pythonnet is installed
Expand Down
6 changes: 5 additions & 1 deletion msl/examples/qt/toggle_switch.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
"""
Example showing the :class:`~msl.qt.widgets.toggle_switch.ToggleSwitch`.
"""
from msl.qt import QtWidgets, application, ToggleSwitch
from msl.qt import (
QtWidgets,
application,
ToggleSwitch
)


def print_state(checked):
Expand Down
5 changes: 4 additions & 1 deletion msl/qt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ def application(*args):
from .loop_until_abort import LoopUntilAbort
from . import prompt
from .sleep import Sleep
from .threading import Thread, Worker
from .threading import (
Thread,
Worker,
)
from .widgets import (
Button,
Logger,
Expand Down
8 changes: 7 additions & 1 deletion msl/qt/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@
import sys
import fnmatch

from . import QtWidgets, QtGui, QtCore, Qt, application
from . import (
QtWidgets,
QtGui,
QtCore,
Qt,
application
)

__all__ = (
'get_drag_enter_paths',
Expand Down
8 changes: 7 additions & 1 deletion msl/qt/loop_until_abort.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@
import datetime
import traceback

from . import QtWidgets, QtCore, QtGui, application, prompt
from . import (
QtWidgets,
QtCore,
QtGui,
application,
prompt
)


class LoopUntilAbort(object):
Expand Down
5 changes: 4 additions & 1 deletion msl/qt/sleep.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
"""
import time

from .threading import Thread, Worker
from .threading import (
Thread,
Worker
)


class SleepWorker(Worker):
Expand Down
7 changes: 6 additions & 1 deletion msl/qt/widgets/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
import logging
import datetime

from .. import QtWidgets, QtGui, prompt, io
from .. import (
QtWidgets,
QtGui,
prompt,
io
)


class Logger(logging.Handler, QtWidgets.QWidget):
Expand Down

0 comments on commit c473d8b

Please sign in to comment.