From 350f379a2009e13a3a6baa3af20f9737f7607d01 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Fri, 18 Sep 2009 22:05:49 +0000 Subject: height width --- diff --git a/svg/and.py b/svg/and.py index 17352c9..17352c9 100644..100755 --- a/svg/and.py +++ b/svg/and.py diff --git a/svg/arc.py b/svg/arc.py index a256b6a..a256b6a 100644..100755 --- a/svg/arc.py +++ b/svg/arc.py diff --git a/svg/back.py b/svg/back.py index 3cd67d2..3cd67d2 100644..100755 --- a/svg/back.py +++ b/svg/back.py diff --git a/svg/bottompos.py b/svg/bottompos.py index c166441..c166441 100644..100755 --- a/svg/bottompos.py +++ b/svg/bottompos.py diff --git a/svg/box1.py b/svg/box1.py index 0fbdfef..0fbdfef 100644..100755 --- a/svg/box1.py +++ b/svg/box1.py diff --git a/svg/box2.py b/svg/box2.py index 357f922..357f922 100644..100755 --- a/svg/box2.py +++ b/svg/box2.py diff --git a/svg/clean.py b/svg/clean.py index 1847c46..1847c46 100644..100755 --- a/svg/clean.py +++ b/svg/clean.py diff --git a/svg/clearheap.py b/svg/clearheap.py index 65a6101..65a6101 100644..100755 --- a/svg/clearheap.py +++ b/svg/clearheap.py diff --git a/svg/color.py b/svg/color.py index cbfd74a..cbfd74a 100644..100755 --- a/svg/color.py +++ b/svg/color.py diff --git a/svg/fillscreen.py b/svg/fillscreen.py index 4f4b249..4f4b249 100644..100755 --- a/svg/fillscreen.py +++ b/svg/fillscreen.py diff --git a/svg/flowgroup.py b/svg/flowgroup.py index 8b70b44..8b70b44 100644..100755 --- a/svg/flowgroup.py +++ b/svg/flowgroup.py diff --git a/svg/forever.py b/svg/forever.py index 4961b3c..4961b3c 100644..100755 --- a/svg/forever.py +++ b/svg/forever.py diff --git a/svg/forward.py b/svg/forward.py index 5a5cb8e..5a5cb8e 100644..100755 --- a/svg/forward.py +++ b/svg/forward.py diff --git a/svg/hat1.py b/svg/hat1.py index f1bc124..f1bc124 100644..100755 --- a/svg/hat1.py +++ b/svg/hat1.py diff --git a/svg/hat2.py b/svg/hat2.py index 23d64e7..23d64e7 100644..100755 --- a/svg/hat2.py +++ b/svg/hat2.py diff --git a/svg/heading.py b/svg/heading.py index b5e546a..b5e546a 100644..100755 --- a/svg/heading.py +++ b/svg/heading.py diff --git a/svg/height.py b/svg/height.py new file mode 100755 index 0000000..ec919a3 --- /dev/null +++ b/svg/height.py @@ -0,0 +1,105 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +#Copyright (c) 2009, Sugar Labs + +#Permission is hereby granted, free of charge, to any person obtaining a copy +#of this software and associated documentation files (the "Software"), to deal +#in the Software without restriction, including without limitation the rights +#to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +#copies of the Software, and to permit persons to whom the Software is +#furnished to do so, subject to the following conditions: + +#The above copyright notice and this permission notice shall be included in +#all copies or substantial portions of the Software. + +#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +#IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +#FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +#AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +#LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +#OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +#THE SOFTWARE. + +import sys +import os +import os.path +import gettext + +def main(): + + myname = "vres" + if len(sys.argv) != 2: + print "Error: Usage is " + myname + ".py lang" + return + + t = gettext.translation("org.laptop.TurtleArtActivity", "../locale", languages=[sys.argv[1]]) + _ = t.ugettext + t.install() + + mystring = _("height") + mygroup = "sensors" + + print mystring + + data0 = \ +" \n \ + \n \ + \n \ + \n \ + \n \ + \n \ + \n \ + \n \ + \n \ + \n \ + \n \ + \n \ + " + + data1 = \ +" \n \ + \n \ + \n" + + + FILE = open(os.path.join("../images", sys.argv[1], mygroup, myname + ".svg"), "w") + FILE.write(data0) + FILE.write(mystring.encode("utf-8")) + FILE.write(data1) + FILE.close() + return + +if __name__ == "__main__": + main() diff --git a/svg/hideblocks.py b/svg/hideblocks.py index 908434a..908434a 100644..100755 --- a/svg/hideblocks.py +++ b/svg/hideblocks.py diff --git a/svg/if.py b/svg/if.py index 3f9cd30..3f9cd30 100644..100755 --- a/svg/if.py +++ b/svg/if.py diff --git a/svg/ifelse.py b/svg/ifelse.py index 7fdfb17..7fdfb17 100644..100755 --- a/svg/ifelse.py +++ b/svg/ifelse.py diff --git a/svg/kbinput.py b/svg/kbinput.py index d1f284a..d1f284a 100644..100755 --- a/svg/kbinput.py +++ b/svg/kbinput.py diff --git a/svg/keyboard.py b/svg/keyboard.py index 27b1761..27b1761 100644..100755 --- a/svg/keyboard.py +++ b/svg/keyboard.py diff --git a/svg/left.py b/svg/left.py index 81590f4..81590f4 100644..100755 --- a/svg/left.py +++ b/svg/left.py diff --git a/svg/leftpos.py b/svg/leftpos.py index 47a3063..47a3063 100644..100755 --- a/svg/leftpos.py +++ b/svg/leftpos.py diff --git a/svg/makesvg.py b/svg/makesvg.py index 69cb7ce..ba70d81 100644..100755 --- a/svg/makesvg.py +++ b/svg/makesvg.py @@ -44,8 +44,8 @@ def main(): "hat1.py", \ "hat2.py", \ "heading.py", \ + "height.py", \ "hideblocks.py", \ - "hres.py", \ "ifelse.py", \ "if.py", \ "kbinput.py", \ @@ -95,8 +95,8 @@ def main(): "textsize.py", \ "toppos.py", \ "turtlegroup.py", \ - "vres.py", \ "wait.py", \ + "width.py", \ "xcor.py", \ "ycor.py" ] diff --git a/svg/myblocksgroup.py b/svg/myblocksgroup.py index 176ada0..176ada0 100644..100755 --- a/svg/myblocksgroup.py +++ b/svg/myblocksgroup.py diff --git a/svg/not.py b/svg/not.py index 80743cf..80743cf 100644..100755 --- a/svg/not.py +++ b/svg/not.py diff --git a/svg/numbersgroup.py b/svg/numbersgroup.py index 024a87f..024a87f 100644..100755 --- a/svg/numbersgroup.py +++ b/svg/numbersgroup.py diff --git a/svg/or.py b/svg/or.py index 90b33c7..90b33c7 100644..100755 --- a/svg/or.py +++ b/svg/or.py diff --git a/svg/pendown.py b/svg/pendown.py index 3987ef4..3987ef4 100644..100755 --- a/svg/pendown.py +++ b/svg/pendown.py diff --git a/svg/pengroup.py b/svg/pengroup.py index 88069d5..88069d5 100644..100755 --- a/svg/pengroup.py +++ b/svg/pengroup.py diff --git a/svg/pensize.py b/svg/pensize.py index 82d8c60..82d8c60 100644..100755 --- a/svg/pensize.py +++ b/svg/pensize.py diff --git a/svg/penup.py b/svg/penup.py index e5d1268..e5d1268 100644..100755 --- a/svg/penup.py +++ b/svg/penup.py diff --git a/svg/pop.py b/svg/pop.py index d1474aa..d1474aa 100644..100755 --- a/svg/pop.py +++ b/svg/pop.py diff --git a/svg/print.py b/svg/print.py index 8bda1dc..8bda1dc 100644..100755 --- a/svg/print.py +++ b/svg/print.py diff --git a/svg/printheap.py b/svg/printheap.py index 66991b0..66991b0 100644..100755 --- a/svg/printheap.py +++ b/svg/printheap.py diff --git a/svg/push.py b/svg/push.py index 63cac84..63cac84 100644..100755 --- a/svg/push.py +++ b/svg/push.py diff --git a/svg/random.py b/svg/random.py index e06a785..e06a785 100644..100755 --- a/svg/random.py +++ b/svg/random.py diff --git a/svg/remainder.py b/svg/remainder.py index 7e1d1cf..7e1d1cf 100644..100755 --- a/svg/remainder.py +++ b/svg/remainder.py diff --git a/svg/remainder2.py b/svg/remainder2.py index 4151d46..4151d46 100644..100755 --- a/svg/remainder2.py +++ b/svg/remainder2.py diff --git a/svg/repeat.py b/svg/repeat.py index 5310b19..5310b19 100644..100755 --- a/svg/repeat.py +++ b/svg/repeat.py diff --git a/svg/right.py b/svg/right.py index cbc113c..cbc113c 100644..100755 --- a/svg/right.py +++ b/svg/right.py diff --git a/svg/rightpos.py b/svg/rightpos.py index b942e13..b942e13 100644..100755 --- a/svg/rightpos.py +++ b/svg/rightpos.py diff --git a/svg/scale.py b/svg/scale.py index 954cd77..954cd77 100644..100755 --- a/svg/scale.py +++ b/svg/scale.py diff --git a/svg/sensorsgroup.py b/svg/sensorsgroup.py index 6df6fda..6df6fda 100644..100755 --- a/svg/sensorsgroup.py +++ b/svg/sensorsgroup.py diff --git a/svg/setcolor.py b/svg/setcolor.py index 60ff3d6..60ff3d6 100644..100755 --- a/svg/setcolor.py +++ b/svg/setcolor.py diff --git a/svg/seth.py b/svg/seth.py index fd55458..fd55458 100644..100755 --- a/svg/seth.py +++ b/svg/seth.py diff --git a/svg/setpensize.py b/svg/setpensize.py index 9c06fab..9c06fab 100644..100755 --- a/svg/setpensize.py +++ b/svg/setpensize.py diff --git a/svg/setscale.py b/svg/setscale.py index cf9d9cd..cf9d9cd 100644..100755 --- a/svg/setscale.py +++ b/svg/setscale.py diff --git a/svg/setshade.py b/svg/setshade.py index 127fd49..127fd49 100644..100755 --- a/svg/setshade.py +++ b/svg/setshade.py diff --git a/svg/settextcolor.py b/svg/settextcolor.py index ce3ab56..ce3ab56 100644..100755 --- a/svg/settextcolor.py +++ b/svg/settextcolor.py diff --git a/svg/settextsize.py b/svg/settextsize.py index 1f2481e..1f2481e 100644..100755 --- a/svg/settextsize.py +++ b/svg/settextsize.py diff --git a/svg/setxy.py b/svg/setxy.py index 09ee18e..09ee18e 100644..100755 --- a/svg/setxy.py +++ b/svg/setxy.py diff --git a/svg/shade.py b/svg/shade.py index f5bf107..f5bf107 100644..100755 --- a/svg/shade.py +++ b/svg/shade.py diff --git a/svg/show.py b/svg/show.py index e767555..e767555 100644..100755 --- a/svg/show.py +++ b/svg/show.py diff --git a/svg/sound.py b/svg/sound.py index 4a509da..4a509da 100644..100755 --- a/svg/sound.py +++ b/svg/sound.py diff --git a/svg/stack1.py b/svg/stack1.py index 7368953..7368953 100644..100755 --- a/svg/stack1.py +++ b/svg/stack1.py diff --git a/svg/stack2.py b/svg/stack2.py index 28cfb1f..28cfb1f 100644..100755 --- a/svg/stack2.py +++ b/svg/stack2.py diff --git a/svg/start.py b/svg/start.py index fc61d94..fc61d94 100644..100755 --- a/svg/start.py +++ b/svg/start.py diff --git a/svg/stopstack.py b/svg/stopstack.py index d4a9f22..d4a9f22 100644..100755 --- a/svg/stopstack.py +++ b/svg/stopstack.py diff --git a/svg/storein.py b/svg/storein.py index 4975aa7..4975aa7 100644..100755 --- a/svg/storein.py +++ b/svg/storein.py diff --git a/svg/storeinbox1.py b/svg/storeinbox1.py index 9631cd1..9631cd1 100644..100755 --- a/svg/storeinbox1.py +++ b/svg/storeinbox1.py diff --git a/svg/storeinbox2.py b/svg/storeinbox2.py index 8c6f667..8c6f667 100644..100755 --- a/svg/storeinbox2.py +++ b/svg/storeinbox2.py diff --git a/svg/templatesgroup.py b/svg/templatesgroup.py index 5638ef9..5638ef9 100644..100755 --- a/svg/templatesgroup.py +++ b/svg/templatesgroup.py diff --git a/svg/textcolor.py b/svg/textcolor.py index 9d8bcb9..9d8bcb9 100644..100755 --- a/svg/textcolor.py +++ b/svg/textcolor.py diff --git a/svg/textsize.py b/svg/textsize.py index 0a68a6f..0a68a6f 100644..100755 --- a/svg/textsize.py +++ b/svg/textsize.py diff --git a/svg/toppos.py b/svg/toppos.py index 69860b4..69860b4 100644..100755 --- a/svg/toppos.py +++ b/svg/toppos.py diff --git a/svg/turtlegroup.py b/svg/turtlegroup.py index e932648..e932648 100644..100755 --- a/svg/turtlegroup.py +++ b/svg/turtlegroup.py diff --git a/svg/wait.py b/svg/wait.py index 08c2bd5..08c2bd5 100644..100755 --- a/svg/wait.py +++ b/svg/wait.py diff --git a/svg/width.py b/svg/width.py new file mode 100755 index 0000000..12f73ca --- /dev/null +++ b/svg/width.py @@ -0,0 +1,104 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +#Copyright (c) 2009, Sugar Labs + +#Permission is hereby granted, free of charge, to any person obtaining a copy +#of this software and associated documentation files (the "Software"), to deal +#in the Software without restriction, including without limitation the rights +#to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +#copies of the Software, and to permit persons to whom the Software is +#furnished to do so, subject to the following conditions: + +#The above copyright notice and this permission notice shall be included in +#all copies or substantial portions of the Software. + +#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +#IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +#FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +#AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +#LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +#OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +#THE SOFTWARE. + +import sys +import os +import os.path +import gettext + +def main(): + + myname = "hres" + if len(sys.argv) != 2: + print "Error: Usage is " + myname + ".py lang" + return + + t = gettext.translation("org.laptop.TurtleArtActivity", "../locale", languages=[sys.argv[1]]) + _ = t.ugettext + t.install() + + mystring = _("width") + mygroup = "sensors" + + print mystring + data0 = \ +" \n \ + \n \ + \n \ + \n \ + \n \ + \n \ + \n \ + \n \ + \n \ + \n \ + \n \ + \n \ + " + + data1 = \ +" \n \ + \n \ + \n" + + + FILE = open(os.path.join("../images", sys.argv[1], mygroup, myname + ".svg"), "w") + FILE.write(data0) + FILE.write(mystring.encode("utf-8")) + FILE.write(data1) + FILE.close() + return + +if __name__ == "__main__": + main() diff --git a/svg/xcor.py b/svg/xcor.py index 24203c6..24203c6 100644..100755 --- a/svg/xcor.py +++ b/svg/xcor.py diff --git a/svg/ycor.py b/svg/ycor.py index 16e3ff4..16e3ff4 100644..100755 --- a/svg/ycor.py +++ b/svg/ycor.py -- cgit v0.9.1