Skip to content

Commit

Permalink
Merge pull request #222 from BinPy/develop
Browse files Browse the repository at this point in the history
Make PyQt4 soft dependency
  • Loading branch information
debugger22 committed May 2, 2014
2 parents 432692b + f37dedd commit dbf5975
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 0 additions & 1 deletion BinPy/tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@
from BinPy.tools.multivibrator import *
from BinPy.tools.oscilloscope import *
from BinPy.tools.clock import *
from BinPy.tools.steppermotor import StepperMotor
8 changes: 7 additions & 1 deletion BinPy/tools/steppermotor.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
from __future__ import print_function
from PyQt4 import QtGui, QtCore

import os
import sys
import time
import BinPy
import threading
from BinPy import *

try:
from PyQt4 import QtGui, QtCore
except ImportError:
raise ImportError("You need to install PyQt4 for GUI components")


class StepperMotor(threading.Thread):

Expand Down Expand Up @@ -34,6 +39,7 @@ class StepperMotor(threading.Thread):
>>> import time
>>> from BinPy import *
>>> from BinPy.tools.steppermotor import StepperMotor
>>> a = Connector(); b = Connector(); c = Connector(); d = Connector()
>>> sm = StepperMotor("Main Motor",a,b,c,d)
>>> for i in range(100):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='BinPy',
version='0.3',
version='0.3.1',
author='BinPy Developers',
author_email='binpylib@gmail.com',
url='http://pypi.python.org/pypi/BinPy/',
Expand Down

0 comments on commit dbf5975

Please sign in to comment.