Changes

Jump to navigation Jump to search
→‎tasetup.py: dock positions are now derived algorithmically
Line 101: Line 101:  
   
 
   
 
[[Image:Bad_heading.jpg]]<br>
 
[[Image:Bad_heading.jpg]]<br>
  −
===tasetup.py===
  −
This file controls, amongst other things the docking behaviour of the blocks. The arithmetic operators +-*/ have equal block dimensions and dock both sides with number blocks. They are defined as having an ''ari'' docking style.
  −
  −
    ('plus','+','ari'),
  −
    ('minus','-','ari'),
  −
    ('product','*','ari'),
  −
    ('division','/','ari'),
  −
  −
And the docking points, left and right, are given coordinates in the following code
  −
  −
  'ari':    (('numend',True,12,20),('num',False,39,20)),
  −
  −
The effect of changing the y coordinates of the left and right docking points from 20 to 10 and 30 are shown below.<br>
  −
  −
  'ari':    (('numend',True,12,10),('num',False,39,30)),
  −
  −
[[Image:Bad_ari_dock.jpg]]<br>
      
===Localizing TurtleArt===
 
===Localizing TurtleArt===

Navigation menu