Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: flake8 and sonarcloud fixes #225

Draft
wants to merge 42 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
cc5263c
Update prtc.py
shawaj Jan 4, 2023
0632497
Update prtc.py
shawaj Jan 4, 2023
ea26d1e
Update prtc.py
shawaj Jan 4, 2023
cebb162
Update prtc.py
shawaj Jan 4, 2023
20f6b68
Update pwrite_text.py
shawaj Jan 4, 2023
ebbdc30
Update pwrite_text.py
shawaj Jan 4, 2023
be408c4
Update setup.py
shawaj Jan 4, 2023
062b7d6
Update setup.py
shawaj Jan 4, 2023
af1795f
Update setup.py
shawaj Jan 4, 2023
569f3fd
Update __init__.py
shawaj Jan 4, 2023
f2818ef
Update composite.py
shawaj Jan 4, 2023
2d0e287
Update epd.py
shawaj Jan 4, 2023
98f8960
Update epd.py
shawaj Jan 4, 2023
e8eb72d
Update image.py
shawaj Jan 4, 2023
beeb980
Update lm75b.py
shawaj Jan 5, 2023
1c9a446
Update readrtc.py
shawaj Jan 5, 2023
a109136
Update text.py
shawaj Jan 5, 2023
8d036b2
Update textpos.py
shawaj Jan 5, 2023
032e314
Update twitter_feed.py
shawaj Jan 5, 2023
886eca4
Update twitter_feed.py
shawaj Jan 5, 2023
6a743c4
Update setup.py
shawaj Jan 5, 2023
ea509dd
Update setup.py
shawaj Jan 5, 2023
9cadb7c
Update setup.py
shawaj Jan 5, 2023
d355614
Update setup.py
shawaj Jan 5, 2023
48dabe5
Update twitter_feed.py
shawaj Jan 5, 2023
639e07c
Update textpos.py
shawaj Jan 5, 2023
bbbc7dd
Update text.py
shawaj Jan 5, 2023
62fad5b
Update textpos.py
shawaj Jan 5, 2023
fb7413a
Update textpos.py
shawaj Jan 5, 2023
339b0f6
Update readrtc.py
shawaj Jan 5, 2023
b3f6cce
Update lm75b.py
shawaj Jan 5, 2023
7ff353f
Create setup.cfg
shawaj Jan 5, 2023
e259114
Update epd.py
shawaj Jan 5, 2023
a6fcef3
Update textpos.py
shawaj Jan 6, 2023
53ef6b0
Update textpos.py
shawaj Jan 6, 2023
9658bd2
Update textpos.py
shawaj Jan 6, 2023
c08258a
Update textpos.py
shawaj Jan 6, 2023
a34e538
Update text.py
shawaj Jan 6, 2023
82b588a
Update textpos.py
shawaj Jan 6, 2023
0023db4
Update pwrite_text.py
shawaj Jan 6, 2023
80faeea
Update epd.py
shawaj Jan 6, 2023
ac8ab91
Update epd.py
shawaj Jan 6, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update textpos.py
  • Loading branch information
shawaj authored Jan 6, 2023
commit 9658bd20048ca2c52d1a8471fd5b24ad6809aac5
5 changes: 3 additions & 2 deletions papirus/textpos.py
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@
BLACK = 0
FONT_PATH = '/usr/share/fonts/truetype/freefont/FreeMono.ttf'


# Class for holding the details of the text
class DispText(object):
def __init__(self, text, x, y, size, invert):
@@ -27,8 +28,8 @@ def __init__(self, autoUpdate=True, rotation=0):
self.autoUpdate = autoUpdate
self.partialUpdates = False

def AddText(self, text, x=0, y=0,
size=20, Id=None, invert=False, fontPath=FONT_PATH, maxLines=100):
def AddText(self, text, x=0, y=0, size=20,
Id=None, invert=False, fontPath=FONT_PATH, maxLines=100):
# Create a new Id if none is supplied
if Id is None:
Id = str(uuid.uuid4())