Skip to content

Commit

Permalink
Fix installation
Browse files Browse the repository at this point in the history
Fix install script.
Replaced TAB with spaces in texts.py to stop python3 complaining.
  • Loading branch information
tvoverbeek committed Oct 7, 2017
1 parent 1fecf01 commit 36a711c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ fi
# Install required packages
apt-get install git -y
if [ $PY2 -eq 1 ]; then
apt-get install python-imaging -y
apt-get install python-pil -y
apt-get install python-smbus -y
apt-get install python-dateutil -y
fi
if [ $PY3 -eq 1 ]; then
apt-get install python3-imaging -y
apt-get install python3-pil -y
apt-get install python3-smbus -y
apt-get install python3-dateutil -y
fi
Expand Down
4 changes: 2 additions & 2 deletions papirus/textpos.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self, text, x, y, size, invert):
self.size = size
self.endx = 0
self.endy = 0
self.invert = invert
self.invert = invert

class PapirusTextPos(object):
def __init__(self, autoUpdate = True, rotation = 0):
Expand All @@ -26,7 +26,7 @@ def __init__(self, autoUpdate = True, rotation = 0):
self.allText = dict()
self.image = Image.new('1', self.papirus.size, WHITE)
self.autoUpdate = autoUpdate
self.partialUpdates = False
self.partialUpdates = False

def AddText(self, text, x=0, y=0, size=20, Id=None, invert=False, fontPath='/usr/share/fonts/truetype/freefont/FreeMono.ttf', maxLines=100):
# Create a new Id if none is supplied
Expand Down

0 comments on commit 36a711c

Please sign in to comment.