Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bastien Terrier
xeyes_sentences
Commits
89111c53
Commit
89111c53
authored
May 24, 2018
by
Bastien Terrier
Browse files
fix initFile arg + split function
parent
0d78a407
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/functions.py
View file @
89111c53
from
alphabet
import
*
#import alphabet
from
resources
import
*
#import resources
def
initFile
(
sentence
):
def
initFile
(
s_
sentence
s
):
f_dataStream
.
write
(
"#!/bin/bash"
)
f_dataStream
.
write
(
"
\n\n
#Powered by Bastien T
\n
"
)
f_dataStream
.
write
(
"
\n
#Sentences : {}
\n
"
.
format
(
sentence
))
f_dataStream
.
write
(
"
\n
#Sentences : {}
\n
"
.
format
(
s_
sentence
s
))
f_dataStream
.
write
(
"#Xeyes size : {}
\n\n
"
.
format
(
i_xeyes_size
))
##############################
...
...
src/xeyes_sentences.py
View file @
89111c53
...
...
@@ -16,9 +16,9 @@ s_input = s_input.upper()
s_input
=
s_input
.
replace
(
'""'
,
""
)
#if several sentences : delimiter "\"
l_sentences
=
s_input
.
sli
p
t
(
"
\"
)
l_sentences
=
s_input
.
s
p
lit
(
"
\
\
"
)
initFile(
f_dataStream,
s_input)
initFile
(
s_input
)
for
s_sentence
in
l_sentences
:
displaySentence
(
s_sentence
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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