Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
plushkatze
foobarpay
Commits
92d9b315
Commit
92d9b315
authored
Apr 20, 2016
by
anthraxx
Browse files
display: make clear call always optional
parent
a739cfb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
foobarpay/display.py
View file @
92d9b315
...
...
@@ -9,15 +9,17 @@ class HIDrawDisplay(object):
def
show_raw_message
(
self
,
message
):
self
.
__send_command__
(
str
.
encode
(
message
))
def
show_welcome
(
self
):
self
.
clear
()
def
show_welcome
(
self
,
clear
=
True
):
if
clear
:
self
.
clear
()
self
.
set_position
(
6
,
1
)
self
.
show_raw_message
(
"Welcome to"
)
self
.
set_position
(
6
,
2
)
self
.
show_raw_message
(
"foobarpay!"
)
def
show_message
(
self
,
message
):
self
.
clear
()
def
show_message
(
self
,
message
,
clear
=
True
):
if
clear
:
self
.
clear
()
self
.
set_position
(
1
,
1
)
self
.
show_raw_message
(
message
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment