Commit 99a5e33d authored by Bastien Terrier's avatar Bastien Terrier
Browse files

allow to modify size in cli

parent a1c54e3f
......@@ -5,7 +5,7 @@ def initFile(f_dataStream, sentence):
f_dataStream.write("#!/bin/bash")
f_dataStream.write("\n\n#Powered by Bastien T\n")
f_dataStream.write("\n#Sentence : {}\n".format(sentence))
f_dataStream.write("#Size : {}\n\n".format(i_xeyes_size))
##############################
def displayCharacter(f_dataStream, char):
......
import sys #args
s_filename = "../xeyes_sentences.sh"
i_xeyes_size = 25
if(len(sys.argv) == 3):
i_xeyes_size = int(sys.argv[2])
else:
i_xeyes_size = 25
s_xeyes_command = "xeyes -geometry {0}x{0}-".format(i_xeyes_size)
global_x_pos = 1000
......
from functions import * #import functions
from resources import * #import resources
import sys #args
#check syntax
if (len(sys.argv) != 2):
print("Syntax error : python process.py sentence_to_display")
if (len(sys.argv) < 2 or len(sys.argv) > 3):
print("Syntax error : python process.py sentence_to_display [size]")
exit(0)
#sentence to display
......
......@@ -2,76 +2,89 @@
#Powered by Bastien T
#Sentence : AZERTY
#Character A
xeyes -geometry 25x25-975+300 &
xeyes -geometry 25x25-950+300 &
xeyes -geometry 25x25-1000+325 &
xeyes -geometry 25x25-925+325 &
xeyes -geometry 25x25-1000+350 &
xeyes -geometry 25x25-975+350 &
xeyes -geometry 25x25-950+350 &
xeyes -geometry 25x25-925+350 &
xeyes -geometry 25x25-1000+375 &
xeyes -geometry 25x25-925+375 &
xeyes -geometry 25x25-1000+400 &
xeyes -geometry 25x25-925+400 &
#Character Z
xeyes -geometry 25x25-875+300 &
xeyes -geometry 25x25-850+300 &
xeyes -geometry 25x25-825+300 &
xeyes -geometry 25x25-800+300 &
xeyes -geometry 25x25-800+325 &
xeyes -geometry 25x25-825+350 &
xeyes -geometry 25x25-850+375 &
xeyes -geometry 25x25-875+400 &
xeyes -geometry 25x25-850+400 &
xeyes -geometry 25x25-825+400 &
xeyes -geometry 25x25-800+400 &
#Character E
xeyes -geometry 25x25-750+300 &
xeyes -geometry 25x25-725+300 &
xeyes -geometry 25x25-700+300 &
xeyes -geometry 25x25-675+300 &
xeyes -geometry 25x25-750+325 &
xeyes -geometry 25x25-750+350 &
xeyes -geometry 25x25-725+350 &
xeyes -geometry 25x25-700+350 &
xeyes -geometry 25x25-750+375 &
xeyes -geometry 25x25-725+375 &
xeyes -geometry 25x25-700+375 &
xeyes -geometry 25x25-750+400 &
xeyes -geometry 25x25-725+400 &
xeyes -geometry 25x25-700+400 &
xeyes -geometry 25x25-675+400 &
#Sentence : BONJOUR
#Size : 50
#Character B
xeyes -geometry 50x50-1000+300 &
xeyes -geometry 50x50-950+300 &
xeyes -geometry 50x50-900+300 &
xeyes -geometry 50x50-1000+350 &
xeyes -geometry 50x50-850+350 &
xeyes -geometry 50x50-1000+400 &
xeyes -geometry 50x50-950+400 &
xeyes -geometry 50x50-900+400 &
xeyes -geometry 50x50-1000+450 &
xeyes -geometry 50x50-850+450 &
xeyes -geometry 50x50-1000+500 &
xeyes -geometry 50x50-950+500 &
xeyes -geometry 50x50-900+500 &
#Character O
xeyes -geometry 50x50-700+300 &
xeyes -geometry 50x50-650+300 &
xeyes -geometry 50x50-750+350 &
xeyes -geometry 50x50-600+350 &
xeyes -geometry 50x50-750+400 &
xeyes -geometry 50x50-600+400 &
xeyes -geometry 50x50-750+450 &
xeyes -geometry 50x50-600+450 &
xeyes -geometry 50x50-700+500 &
xeyes -geometry 50x50-650+500 &
#Character N
xeyes -geometry 50x50-500+300 &
xeyes -geometry 50x50-350+300 &
xeyes -geometry 50x50-500+350 &
xeyes -geometry 50x50-450+350 &
xeyes -geometry 50x50-350+350 &
xeyes -geometry 50x50-500+400 &
xeyes -geometry 50x50-400+400 &
xeyes -geometry 50x50-350+400 &
xeyes -geometry 50x50-500+450 &
xeyes -geometry 50x50-350+450 &
xeyes -geometry 50x50-500+500 &
xeyes -geometry 50x50-350+500 &
#Character J
xeyes -geometry 50x50-100+300 &
xeyes -geometry 50x50-100+350 &
xeyes -geometry 50x50-100+400 &
xeyes -geometry 50x50-250+450 &
xeyes -geometry 50x50-100+450 &
xeyes -geometry 50x50-200+500 &
xeyes -geometry 50x50-150+500 &
#Character O
xeyes -geometry 50x50--50+300 &
xeyes -geometry 50x50--100+300 &
xeyes -geometry 50x50-0+350 &
xeyes -geometry 50x50--150+350 &
xeyes -geometry 50x50-0+400 &
xeyes -geometry 50x50--150+400 &
xeyes -geometry 50x50-0+450 &
xeyes -geometry 50x50--150+450 &
xeyes -geometry 50x50--50+500 &
xeyes -geometry 50x50--100+500 &
#Character U
xeyes -geometry 50x50--250+300 &
xeyes -geometry 50x50--400+300 &
xeyes -geometry 50x50--250+350 &
xeyes -geometry 50x50--400+350 &
xeyes -geometry 50x50--250+400 &
xeyes -geometry 50x50--400+400 &
xeyes -geometry 50x50--250+450 &
xeyes -geometry 50x50--400+450 &
xeyes -geometry 50x50--250+500 &
xeyes -geometry 50x50--300+500 &
xeyes -geometry 50x50--350+500 &
xeyes -geometry 50x50--400+500 &
#Character R
xeyes -geometry 25x25-625+300 &
xeyes -geometry 25x25-600+300 &
xeyes -geometry 25x25-575+300 &
xeyes -geometry 25x25-625+325 &
xeyes -geometry 25x25-550+325 &
xeyes -geometry 25x25-625+350 &
xeyes -geometry 25x25-600+350 &
xeyes -geometry 25x25-575+350 &
xeyes -geometry 25x25-625+375 &
xeyes -geometry 25x25-575+375 &
xeyes -geometry 25x25-625+400 &
xeyes -geometry 25x25-550+400 &
#Character T
xeyes -geometry 25x25-500+300 &
xeyes -geometry 25x25-475+300 &
xeyes -geometry 25x25-450+300 &
xeyes -geometry 25x25-475+325 &
xeyes -geometry 25x25-475+350 &
xeyes -geometry 25x25-475+375 &
xeyes -geometry 25x25-475+400 &
#Character Y
xeyes -geometry 25x25-400+300 &
xeyes -geometry 25x25-350+300 &
xeyes -geometry 25x25-400+325 &
xeyes -geometry 25x25-350+325 &
xeyes -geometry 25x25-400+350 &
xeyes -geometry 25x25-375+350 &
xeyes -geometry 25x25-350+350 &
xeyes -geometry 25x25-375+375 &
xeyes -geometry 25x25-375+400 &
xeyes -geometry 50x50--500+300 &
xeyes -geometry 50x50--550+300 &
xeyes -geometry 50x50--600+300 &
xeyes -geometry 50x50--500+350 &
xeyes -geometry 50x50--650+350 &
xeyes -geometry 50x50--500+400 &
xeyes -geometry 50x50--550+400 &
xeyes -geometry 50x50--600+400 &
xeyes -geometry 50x50--500+450 &
xeyes -geometry 50x50--600+450 &
xeyes -geometry 50x50--500+500 &
xeyes -geometry 50x50--650+500 &
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment