i2cgui installed as a script, version bump to 0.0.5

This commit is contained in:
James Bowman 2019-04-25 19:46:26 -07:00
parent 39ce40b545
commit 5a83009a70
4 changed files with 12 additions and 4 deletions

View File

@ -4,7 +4,7 @@ import time
import struct import struct
from collections import OrderedDict from collections import OrderedDict
__version__ = '0.0.4' __version__ = '0.0.5'
PYTHON2 = (sys.version_info < (3, 0)) PYTHON2 = (sys.version_info < (3, 0))

View File

@ -1,3 +1,3 @@
python led8x8.py /dev/ttyUSB0 python mag3110.py /dev/ttyUSB0
# python EDS-take-a-ticket.py /dev/ttyUSB0 # python EDS-take-a-ticket.py /dev/ttyUSB0
# python i2cgui.py # python i2cgui.py

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python
import time import time
import struct import struct
import sys import sys
@ -9,8 +11,13 @@ from functools import partial
import serial.tools.list_ports as slp import serial.tools.list_ports as slp
import serial import serial
import wx try:
import wx.lib.newevent as NE import wx
import wx.lib.newevent as NE
except ImportError:
print("i2cgui.py needs wxPython, but it wasn't found.")
print("See https://www.wxpython.org/pages/downloads/")
sys.exit(1)
import i2cdriver import i2cdriver

View File

@ -21,4 +21,5 @@ setup(name='i2cdriver',
'i2cdriver', 'i2cdriver',
'EDS', 'EDS',
], ],
scripts=['samples/i2cgui.py'],
) )